Author: khornicek
Date: Tue Dec 2 04:48:30 2008
New Revision: 37807
URL: http://svn.reactos.org/svn/reactos?rev=37807&view=rev
Log:
- according to msdn a handle to the global ddraw object should be returned when hdc is 0
- fixes 2 ddrawapi tests
Modified:
branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c
Modified: branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c
URL: http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/win32/gdi32/…
==============================================================================
--- branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c [iso-8859-1] (original)
+++ branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c [iso-8859-1] Tue Dec 2 04:48:30 2008
@@ -1744,8 +1744,8 @@
Return = TRUE;
}
- /* Zero the handle */
- pDirectDrawGlobal->hDD = 0;
+ /* Return a handle to the global DirectDraw object*/
+ pDirectDrawGlobal->hDD = (ULONG_PTR) ghDirectDraw;
}
else
{