From 25bc546159df885cf0a440d7b4bb933d7e6db22f Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 14 Jul 2013 09:30:26 +0000 Subject: [PATCH] [NTOSKRNL] Fix return of MiProtectedPoolUnProtectLinks() which was always returning null, instead of returning safe unprotected links when needed svn path=/trunk/; revision=59478 --- reactos/ntoskrnl/mm/ARM3/pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/ARM3/pool.c b/reactos/ntoskrnl/mm/ARM3/pool.c index e8ade80eb16..31d07beef7a 100644 --- a/reactos/ntoskrnl/mm/ARM3/pool.c +++ b/reactos/ntoskrnl/mm/ARM3/pool.c @@ -118,7 +118,7 @@ MiProtectedPoolUnProtectLinks(IN PLIST_ENTRY Links, /* So make it safe to access */ Safe = MiUnProtectFreeNonPagedPool(PoolVa, 1); - if (Safe) PoolFlink = PoolVa; + if (Safe) *PoolFlink = PoolVa; } /* Are we going to need a backward link too? */ @@ -129,7 +129,7 @@ MiProtectedPoolUnProtectLinks(IN PLIST_ENTRY Links, /* Make it safe to access */ Safe = MiUnProtectFreeNonPagedPool(PoolVa, 1); - if (Safe) PoolBlink = PoolVa; + if (Safe) *PoolBlink = PoolVa; } }