SIZE_T RtlpAllocDeallocQueryBufferSize = PAGE_SIZE;
PTEB LdrpTopLevelDllBeingLoadedTeb = NULL;
-#define IMAGE_DOS_MAGIC 0x5a4d
-#define IMAGE_PE_MAGIC 0x00004550
/* FUNCTIONS ***************************************************************/
-#ifndef _M_AMD64
-// FIXME: Why "Not implemented"???
/*
* @implemented
*/
/* Not implemented for user-mode */
return 0;
}
-#endif
BOOLEAN
NTAPI
RtlAcquirePebLock(VOID)
{
PPEB Peb = NtCurrentPeb ();
- Peb->FastPebLockRoutine (Peb->FastPebLock);
+ RtlEnterCriticalSection(Peb->FastPebLock);
}
/*
RtlReleasePebLock(VOID)
{
PPEB Peb = NtCurrentPeb ();
- Peb->FastPebUnlockRoutine (Peb->FastPebLock);
+ RtlLeaveCriticalSection(Peb->FastPebLock);
}
/*
return NULL;
}
+
/*
* Ldr Resource support code
*/