Re: ddraw.h structure alignment

2009-10-11 Thread Markus Stockhausen
Am Sonntag, den 11.10.2009, 17:15 +0200 schrieb Stefan Dösinger: > Does a pragma pack fix the issue? If yes, then that's probably the > correct fix. > > Its probably worth writing a test that allocates e.g. a char data[64], > then passes this to GetDeviceIdentifier, fill it with non-zero data,

Re: ddraw.h structure alignment

2009-10-11 Thread Stefan Dösinger
Am 11.10.2009 um 14:42 schrieb Markus Stockhausen: Am Sonntag, den 11.10.2009, 13:18 +0200 schrieb Markus Stockhausen: Then I'm somehow in trouble. How can one explain the following error: Application calls IDirectDraw GetDeviceIdentifier of DDRAW7 but only reserves memory with sizeof(DDEVICEI

ddraw.h structure alignment

2009-10-11 Thread Markus Stockhausen
Am Sonntag, den 11.10.2009, 13:18 +0200 schrieb Markus Stockhausen: > Then I'm somehow in trouble. How can one explain the following > error: Application calls IDirectDraw GetDeviceIdentifier of > DDRAW7 but only reserves memory with sizeof(DDEVICEIDENTIFIER) > instead of sizeof(DDEVICEIDENTIFIER