[NTOSKRNL]

Fix return of MiProtectedPoolUnProtectLinks() which was always returning null, instead of returning
safe unprotected links when needed

svn path=/trunk/; revision=59478
This commit is contained in:
Pierre Schweitzer 2013-07-14 09:30:26 +00:00
parent c97dc9fd31
commit 25bc546159

View file

@ -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;
}
}