mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 04:35:07 +00:00
[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:
parent
c97dc9fd31
commit
25bc546159
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue