[NTDLL/LDR]

- Mark module entries as "load in progress" when pinning them.
CORE-7819 #comment Committed, as a lot of applications rely on this. Feel free to revert if you feel the change is not correct.

svn path=/trunk/; revision=64237
This commit is contained in:
Jérôme Gardou 2014-09-23 11:32:50 +00:00
parent f85261888e
commit adb18fba08

View file

@ -235,7 +235,7 @@ LdrpUpdateLoadCount3(IN PLDR_DATA_TABLE_ENTRY LdrEntry,
ULONG i;
/* Check the action we need to perform */
if (Flags == LDRP_UPDATE_REFCOUNT)
if ((Flags == LDRP_UPDATE_REFCOUNT) || (Flags == LDRP_UPDATE_PIN))
{
/* Make sure entry is not being loaded already */
if (LdrEntry->Flags & LDRP_LOAD_IN_PROGRESS)