mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
fixed casting to pointer, Im not 100% sure it's currect so please give it a look
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@497 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e5a126e231
commit
ea75d5adce
@ -91,7 +91,7 @@ void SaveStateCallback(u64 userdata, int cyclesLate)
|
|||||||
u8 *ptr = 0;
|
u8 *ptr = 0;
|
||||||
PointerWrap p(&ptr, PointerWrap::MODE_MEASURE);
|
PointerWrap p(&ptr, PointerWrap::MODE_MEASURE);
|
||||||
DoState(p);
|
DoState(p);
|
||||||
int sz = (int)(u64)ptr;
|
u64 sz = (u64)ptr;
|
||||||
u8 *buffer = new u8[sz];
|
u8 *buffer = new u8[sz];
|
||||||
ptr = buffer;
|
ptr = buffer;
|
||||||
p.SetMode(PointerWrap::MODE_WRITE);
|
p.SetMode(PointerWrap::MODE_WRITE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user