Remove a windwos 95/98/Me behvoir in NtGdiDdQueryDirectDrawObject, also tested in...
authorMagnus Olsen <magnus@greatlord.com>
Fri, 6 Apr 2007 20:43:11 +0000 (20:43 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Fri, 6 Apr 2007 20:43:11 +0000 (20:43 +0000)
puvmList and puNumHeaps should be ignore by Windows NT when they are pass down, it is not true if both getting a vaild pointer I am getting back data in windows it is not a vmList, what I get back I do not known. Add a comment I did forget setup the copy of puD3dTextureFormats from kmode to umode pointer will be fixed later. After I fix the last part this api is 99.9% compatible with Windows 2000 and higher.

svn path=/trunk/; revision=26270

reactos/subsystems/win32/win32k/ntddraw/ddraw.c

index d89207a..c51029c 100644 (file)
@@ -502,17 +502,18 @@ NtGdiDdQueryDirectDrawObject(
         return FALSE;
     }
 
+    /* FIXME puD3dTextureFormats */
+
     _SEH_TRY
     {
-        ProbeForWrite(puNumHeaps,  sizeof(DWORD), 1);
-        *puNumHeaps = pDirectDraw->dwNumHeaps;
-
-        if ((pDirectDraw->pvmList != NULL) && (puvmList != NULL))
-        {
-            ProbeForWrite(puvmList, sizeof(VIDEOMEMORY) * pDirectDraw->dwNumHeaps, 1);
-            RtlCopyMemory( puvmList, pDirectDraw->pvmList, sizeof(VIDEOMEMORY) * pDirectDraw->dwNumHeaps);
-        }
-
+        /* Waring :
+         * In Windows 2000 puvmList and puNumHeaps does not export from 
+         * NtGdiDdQueryDirectDrawObject
+         * FIXME remove alloc code for puvmList and puNumHeaps in GDI32.dll 
+         * so I remove the puvmList code I wrote. See MSDN and my 
+         * private note about this matter, the private note will be in 
+         * my book as well when it comes.
+         */
         ProbeForWrite(puNumFourCC, sizeof(DWORD), 1);
         *puNumFourCC = pDirectDraw->dwNumFourCC;