mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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
|
||||
EngFreeMem(PVOID pvBaseAddress)
|
||||
{
|
||||
ExFreePool(pvBaseAddress);
|
||||
/* Windows allows to pass NULL */
|
||||
if (pvBaseAddress)
|
||||
{
|
||||
ExFreePool(pvBaseAddress);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue