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

@ -44,7 +44,11 @@ VOID
APIENTRY
EngFreeMem(PVOID pvBaseAddress)
{
ExFreePool(pvBaseAddress);
/* Windows allows to pass NULL */
if (pvBaseAddress)
{
ExFreePool(pvBaseAddress);
}
}
/*