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:
parent
ba25f038af
commit
2788222be3
|
@ -330,8 +330,8 @@ void LoadStateCallback(u64 userdata, int cyclesLate)
|
|||
else
|
||||
{
|
||||
fseek(f, 0, SEEK_END);
|
||||
sz = (int)(ftell(f) - sizeof(int));
|
||||
fseek(f, sizeof(int), SEEK_SET);
|
||||
sz = (int)(ftell(f) - sizeof(state_header));
|
||||
fseek(f, sizeof(state_header), SEEK_SET);
|
||||
buffer = new u8[sz];
|
||||
int x;
|
||||
if ((x = (int)fread(buffer, 1, sz, f)) != (int)sz)
|
||||
|
|
Loading…
Reference in New Issue