mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Fixed Issue 1888, marco.calautti's patch
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4761 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -330,8 +330,8 @@ void LoadStateCallback(u64 userdata, int cyclesLate)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
fseek(f, 0, SEEK_END);
|
fseek(f, 0, SEEK_END);
|
||||||
sz = (int)(ftell(f) - sizeof(int));
|
sz = (int)(ftell(f) - sizeof(state_header));
|
||||||
fseek(f, sizeof(int), SEEK_SET);
|
fseek(f, sizeof(state_header), SEEK_SET);
|
||||||
buffer = new u8[sz];
|
buffer = new u8[sz];
|
||||||
int x;
|
int x;
|
||||||
if ((x = (int)fread(buffer, 1, sz, f)) != (int)sz)
|
if ((x = (int)fread(buffer, 1, sz, f)) != (int)sz)
|
||||||
|
Reference in New Issue
Block a user