mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
[NTOS:MM]
- Fix free condition in MiDereferenceImports. Based on a patch by Samuel Serapion. CORE-7208 #resolve svn path=/trunk/; revision=67229
This commit is contained in:
parent
87424486ea
commit
211986401c
1 changed files with 3 additions and 3 deletions
|
@ -445,9 +445,9 @@ MiDereferenceImports(IN PLOAD_IMPORTS ImportList)
|
|||
MiDereferenceImports(CurrentImports);
|
||||
|
||||
/* Check if we had valid imports */
|
||||
if ((CurrentImports != MM_SYSLDR_BOOT_LOADED) ||
|
||||
(CurrentImports != MM_SYSLDR_NO_IMPORTS) ||
|
||||
!((ULONG_PTR)LdrEntry->LoadedImports & MM_SYSLDR_SINGLE_ENTRY))
|
||||
if ((CurrentImports != MM_SYSLDR_BOOT_LOADED) &&
|
||||
(CurrentImports != MM_SYSLDR_NO_IMPORTS) &&
|
||||
!((ULONG_PTR)CurrentImports & MM_SYSLDR_SINGLE_ENTRY))
|
||||
{
|
||||
/* Free them */
|
||||
ExFreePoolWithTag(CurrentImports, TAG_LDR_IMPORTS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue