Author: greatlrd
Date: Sun Jun 10 08:36:19 2007
New Revision: 27102
URL:
http://svn.reactos.org/svn/reactos?rev=27102&view=rev
Log:
simplefly the math for calc out the guiddeviceidentify
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c Sun Jun 10 08:36:19 2007
@@ -545,18 +545,16 @@
/* Count out the guidDeviceIdentifier */
memcpy(&pDDDI->guidDeviceIdentifier,
&CLSID_DirectDraw,sizeof(GUID));
- pDDDI->guidDeviceIdentifier.Data1 =
pDDDI->guidDeviceIdentifier.Data1 ^ pDDDI->dwVendorId;
+ pDDDI->guidDeviceIdentifier.Data1 ^= pDDDI->dwVendorId;
lpdata = (long *)&pDDDI->guidDeviceIdentifier.Data2;
- *lpdata = *lpdata ^ pDDDI->dwDeviceId;
+ *lpdata ^= pDDDI->dwDeviceId;
lpdata = (long *)&pDDDI->guidDeviceIdentifier.Data4;
- *lpdata = *lpdata ^ pDDDI->dwSubSysId;
- *lpdata = *lpdata ^ pDDDI->liDriverVersion.LowPart;
+ *lpdata = (*lpdata ^ pDDDI->dwSubSysId) ^
pDDDI->liDriverVersion.LowPart;
lpdata = (long *)&pDDDI->guidDeviceIdentifier.Data4[4];
- *lpdata = *lpdata ^ pDDDI->dwRevision;
- *lpdata = *lpdata ^ pDDDI->liDriverVersion.HighPart;
+ *lpdata = (*lpdata ^ pDDDI->dwRevision) ^
pDDDI->liDriverVersion.HighPart;
/* FIXME pDDDI->dwWHQLLevel
* we leave this with no informations, I do not known