[Bug 26459] Dragon Age: Origins DVD authenticity checks fail (IOCTL_DVD_READ_STRUCTURE fails, structures in "ntddcdvd.h" need to be byte packed with no padding)

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jan 21 15:17:59 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=26459

--- Comment #5 from Dan Kegel <dank at 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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list