Author: tkreuzer
Date: Tue Sep 18 20:55:15 2012
New Revision: 57325
URL:
http://svn.reactos.org/svn/reactos?rev=57325&view=rev
Log:
[WIN32K]
Allow passing NULL to EngFreeMem, like on Windows.
Fixes mode switching with cirrus driver on qemu.
CORE-6335 #resolve
Modified:
trunk/reactos/win32ss/gdi/eng/mem.c
Modified: trunk/reactos/win32ss/gdi/eng/mem.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/mem.c?rev=…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/mem.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/mem.c [iso-8859-1] Tue Sep 18 20:55:15 2012
@@ -44,7 +44,11 @@
APIENTRY
EngFreeMem(PVOID pvBaseAddress)
{
- ExFreePool(pvBaseAddress);
+ /* Windows allows to pass NULL */
+ if (pvBaseAddress)
+ {
+ ExFreePool(pvBaseAddress);
+ }
}
/*