Fixed one test so it be more fair.
authorMagnus Olsen <magnus@greatlord.com>
Sun, 4 May 2008 19:58:33 +0000 (19:58 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 4 May 2008 19:58:33 +0000 (19:58 +0000)
svn path=/trunk/; revision=33278

rostests/apitests/w32knapi/ntdd/NtGdiDdQueryDirectDrawObject.c

index 71a4e4a..a73c0dc 100644 (file)
@@ -210,14 +210,20 @@ Test_NtGdiDdQueryDirectDrawObject(PTESTINFO pti)
         RTEST( pHalInfo->ddCaps.dwFXAlphaCaps == 0);\r
         \r
 \r
         RTEST( pHalInfo->ddCaps.dwFXAlphaCaps == 0);\r
         \r
 \r
-        /* if this fail we do not have a dx driver install acodring ms, some version of windows it\r
+        /* basic dx 2 is found if this flags not set\r
+         * if this fail we do not have a dx driver install acodring ms, some version of windows it\r
          * is okay this fail and drv does then only support basic dx\r
          * is okay this fail and drv does then only support basic dx\r
+         * \r
          */\r
          */\r
-        RTEST( (pHalInfo->dwFlags & (DDHALINFO_GETDRIVERINFOSET | DDHALINFO_GETDRIVERINFO2)) != 0 );\r
+        if (pHalInfo->dwFlags != 0)\r
+        {\r
+            RTEST( (pHalInfo->dwFlags & (DDHALINFO_GETDRIVERINFOSET | DDHALINFO_GETDRIVERINFO2)) != 0 );\r
+            RTEST( ( (DWORD)pHalInfo->GetDriverInfo & 0x80000000) != 0 );\r
+            ASSERT( ((DWORD)pHalInfo->GetDriverInfo & 0x80000000) != 0 );\r
+        }\r
 \r
         /* point to kmode direcly to the graphic drv, the drv is kmode and it is kmode address we getting back*/\r
 \r
         /* point to kmode direcly to the graphic drv, the drv is kmode and it is kmode address we getting back*/\r
-        RTEST( ( (DWORD)pHalInfo->GetDriverInfo & (~0x80000000)) != 0 );\r
-        ASSERT( ((DWORD)pHalInfo->GetDriverInfo & (~0x80000000)) != 0 );\r
+        \r
 \r
        /* the pHalInfo->ddCaps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE will be ignore, only way detect it proper follow code,\r
         * 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 \r
 \r
        /* the pHalInfo->ddCaps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE will be ignore, only way detect it proper follow code,\r
         * 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 \r