Author: greatlrd
Date: Sat Apr 7 00:43:11 2007
New Revision: 26270
URL: http://svn.reactos.org/svn/reactos?rev=26270&view=rev
Log:
Remove a windwos 95/98/Me behvoir in NtGdiDdQueryDirectDrawObject, also tested in windows 2000 see if this bevhoir really exitsed or not.
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.
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c Sat Apr 7 00:43:11 2007
@@ -502,17 +502,18 @@
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;