mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:42:59 +00:00
[WIN32K]
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:
parent
fa8ab28a6d
commit
903c512783
1 changed files with 5 additions and 1 deletions
|
@ -44,7 +44,11 @@ VOID
|
||||||
APIENTRY
|
APIENTRY
|
||||||
EngFreeMem(PVOID pvBaseAddress)
|
EngFreeMem(PVOID pvBaseAddress)
|
||||||
{
|
{
|
||||||
|
/* Windows allows to pass NULL */
|
||||||
|
if (pvBaseAddress)
|
||||||
|
{
|
||||||
ExFreePool(pvBaseAddress);
|
ExFreePool(pvBaseAddress);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue