Allow passing NULL to EngFreeMem, like on Windows.
Fixes mode switching with cirrus driver on qemu.
CORE-6335 #resolve

svn path=/trunk/; revision=57325
This commit is contained in:
Timo Kreuzer 2012-09-18 20:55:15 +00:00
parent fa8ab28a6d
commit 903c512783

View file

@ -43,9 +43,13 @@ EngAllocMem(
VOID VOID
APIENTRY APIENTRY
EngFreeMem(PVOID pvBaseAddress) EngFreeMem(PVOID pvBaseAddress)
{
/* Windows allows to pass NULL */
if (pvBaseAddress)
{ {
ExFreePool(pvBaseAddress); ExFreePool(pvBaseAddress);
} }
}
/* /*
* @implemented * @implemented