Author: tfaber
Date: Fri Apr 17 18:21:12 2015
New Revision: 67229
URL:
http://svn.reactos.org/svn/reactos?rev=67229&view=rev
Log:
[NTOS:MM]
- Fix free condition in MiDereferenceImports. Based on a patch by Samuel Serapion.
CORE-7208 #resolve
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c [iso-8859-1] Fri Apr 17 18:21:12 2015
@@ -445,9 +445,9 @@
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);