mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:31:51 +00:00
fixed more test after my notes of old testkit I wrote for private use.
svn path=/trunk/; revision=32920
This commit is contained in:
parent
6a80fdf161
commit
449827d222
1 changed files with 13 additions and 7 deletions
|
@ -201,13 +201,19 @@ Test_NtGdiDdQueryDirectDrawObject(PTESTINFO pti)
|
|||
*/
|
||||
RTEST( (pHalInfo->dwFlags & (DDHALINFO_GETDRIVERINFOSET | DDHALINFO_GETDRIVERINFO2)) != 0 );
|
||||
|
||||
if (pHalInfo->ddCaps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE )
|
||||
{
|
||||
/* it is store in kmode so we check if it kmode address or not */
|
||||
RTEST( ( (DWORD)pHalInfo->lpD3DGlobalDriverData & (~0x80000000)) != 0 );
|
||||
RTEST( ( (DWORD)pHalInfo->lpD3DHALCallbacks & (~0x80000000)) != 0 );
|
||||
RTEST( ( (DWORD)pHalInfo->lpD3DHALCallbacks & (~0x80000000)) != 0 );
|
||||
}
|
||||
/* point to kmode direcly to the graphic drv, the drv is kmode and it is kmode address we getting back*/
|
||||
RTEST( ( (DWORD)pHalInfo->GetDriverInfo & (~0x80000000)) != 0 );
|
||||
|
||||
|
||||
/* the pHalInfo->ddCaps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE will be ignore, only way detect it proper follow code,
|
||||
* this will be fill in of all drv, it is not only for 3d stuff, this always fill by win32k.sys or dxg.sys depns
|
||||
* if it windows 2000 or windows xp/2003
|
||||
*
|
||||
* point to kmode direcly to the win32k.sys, win32k.sys is kmode and it is kmode address we getting back
|
||||
*/
|
||||
RTEST( ( (DWORD)pHalInfo->lpD3DGlobalDriverData & (~0x80000000)) != 0 );
|
||||
RTEST( ( (DWORD)pHalInfo->lpD3DHALCallbacks & (~0x80000000)) != 0 );
|
||||
RTEST( ( (DWORD)pHalInfo->lpD3DHALCallbacks & (~0x80000000)) != 0 );
|
||||
}
|
||||
|
||||
/* Backup DD_HALINFO so we do not need resting it */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue