http://bugs.winehq.org/show_bug.cgi?id=26459
--- Comment #5 from Dan Kegel dank@kegel.com 2012-01-21 15:17:59 CST --- Created attachment 38483 --> http://bugs.winehq.org/attachment.cgi?id=38483 Test app source code
The attached program gives different results when compiled with the WDK and with wine:
-sizeof(struct _DVD_COPY_PROTECT_KEY) is 24 +sizeof(struct _DVD_COPY_PROTECT_KEY) is 32 sizeof(struct _DVD_RPC_KEY) is 4 sizeof(struct _DVD_ASF) is 4 sizeof(struct _DVD_REGION) is 4 -sizeof(struct DVD_READ_STRUCTURE) is 17 -sizeof(struct _DVD_LAYER_DESCRIPTOR) is 17 +sizeof(struct DVD_READ_STRUCTURE) is 24 +sizeof(struct _DVD_LAYER_DESCRIPTOR) is 20 sizeof(struct _DVD_COPYRIGHT_DESCRIPTOR) is 4 sizeof(struct _DVD_DISK_KEY_DESCRIPTOR) is 2048 -sizeof(struct _DVD_BCA_DESCRIPTOR) is 4 +sizeof(struct _DVD_BCA_DESCRIPTOR) is 1 sizeof(struct _DVD_MANUFACTURER_DESCRIPTOR) is 2048
It also exposed the curious fact that DVD_READ_STRUCTURE is defined in WDK 7.1 without a leading _; I had to remove that to get the test to compile with the WDK.
(I suspect the DVD_BCA_DESCRIPTOR difference doesn't matter; nobody should be taking the size of that struct.)
I'll send a patch.