include/ddk: ntddcdvd.h structure naming, packing fixes

Dan Kegel dank at kegel.com
Sat Jan 21 16:27:24 CST 2012


Bring some of the definitions in wine's ntddcdvd.h header in line with WDK 7.1.

A test program to print out the sizes of structures in wine's ntddcdvd.h showed
the following differences between native and wine:

-sizeof(struct _DVD_COPY_PROTECT_KEY) is 24
+sizeof(struct _DVD_COPY_PROTECT_KEY) is 32
-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_BCA_DESCRIPTOR) is 4
+sizeof(struct _DVD_BCA_DESCRIPTOR) is 1

It also exposed the curious fact that the WDK 7.1 defines
DVD_READ_STRUCTURE but not _DVD_READ_STRUCTURE.

The _DVD_BCA_DESCRIPTOR mismatch doesn't seem
worth fixing, but Dragon Age Origins' cd check needs one of the others
fixed, see
http://bugs.winehq.org/show_bug.cgi?id=26459
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cd.patch
Type: text/x-patch
Size: 1379 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120121/d0813c97/attachment-0001.bin>


More information about the wine-patches mailing list