mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +00:00
Building part of guidDeviceIdentifier in GetDeviceIdentifier
left to coding in is REV_ SUBSYS_ liDriverVersion svn path=/trunk/; revision=27098
This commit is contained in:
parent
f2d0f12dc0
commit
f8a6e087fd
1 changed files with 15 additions and 0 deletions
|
@ -463,6 +463,7 @@ Main_DirectDraw_GetDeviceIdentifier7(LPDIRECTDRAW7 iface,
|
||||||
DWORD strSize = MAX_DDDEVICEID_STRING;
|
DWORD strSize = MAX_DDDEVICEID_STRING;
|
||||||
char *pdest;
|
char *pdest;
|
||||||
char* pcCnvEnd;
|
char* pcCnvEnd;
|
||||||
|
long data;
|
||||||
|
|
||||||
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT) iface;
|
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT) iface;
|
||||||
|
|
||||||
|
@ -518,6 +519,10 @@ Main_DirectDraw_GetDeviceIdentifier7(LPDIRECTDRAW7 iface,
|
||||||
{
|
{
|
||||||
ZeroMemory(pDDDI->szDriver,MAX_DDDEVICEID_STRING);
|
ZeroMemory(pDDDI->szDriver,MAX_DDDEVICEID_STRING);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strcat(pDDDI->szDriver,".dll");
|
||||||
|
}
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -539,6 +544,16 @@ Main_DirectDraw_GetDeviceIdentifier7(LPDIRECTDRAW7 iface,
|
||||||
|
|
||||||
/* FIXME pDDDI->guidDeviceIdentifier, pDDDI->dwWHQLLevel */
|
/* FIXME pDDDI->guidDeviceIdentifier, pDDDI->dwWHQLLevel */
|
||||||
|
|
||||||
|
memcpy(&pDDDI->guidDeviceIdentifier, &CLSID_DirectDraw,sizeof(GUID));
|
||||||
|
|
||||||
|
pDDDI->guidDeviceIdentifier.Data1 = pDDDI->guidDeviceIdentifier.Data1 ^ pDDDI->dwVendorId;
|
||||||
|
|
||||||
|
data = (pDDDI->guidDeviceIdentifier.Data3 <<16) | pDDDI->guidDeviceIdentifier.Data2;
|
||||||
|
data = data ^ pDDDI->dwDeviceId;
|
||||||
|
pDDDI->guidDeviceIdentifier.Data2 = data & 0xFFFF;
|
||||||
|
pDDDI->guidDeviceIdentifier.Data3 = (data>>16) & 0xFFFF;
|
||||||
|
|
||||||
|
|
||||||
pDDDI->dwWHQLLevel = 0;
|
pDDDI->dwWHQLLevel = 0;
|
||||||
retVal = DD_OK;
|
retVal = DD_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue