- Add a patch from Christoph G. to prevent loosing data when going from v1.2 with sizeof(BOOL)==1 to v1.3 with sizeof(BOOL)==4!

This commit is contained in:
dgis 2019-04-03 23:56:48 +02:00
parent 25ab305d5d
commit f42bcae2b5

View file

@ -1072,6 +1072,14 @@ BOOL OpenDocument(LPCTSTR szFilename)
goto restore;
}
// Temporary patch for going from v1.2 with sizeof(BOOL)==1 to v1.3 with sizeof(BOOL)==4!
//--> begin of modification by cg
if (lSizeofChipset == 8632) // fix for Emu48 for Android v1.2 or earlier
{
ZeroMemory(&((BYTE *)&Chipset)[offsetof(CHIPSET,SoftInt)],sizeof(Chipset) - offsetof(CHIPSET,SoftInt));
}
//<-- end of modification
SetWindowLocation(hWnd,Chipset.nPosX,Chipset.nPosY);
while (TRUE)