Update apiimport.c

This commit is contained in:
dmex
2019-10-20 16:01:20 +11:00
parent 7ce6266745
commit 0044fe97ef
+1 -1
View File
@@ -46,7 +46,7 @@ PVOID PhpImportProcedure(
procedure = PhGetDllBaseProcedureAddress(module, ProcedureName, 0);
if (*Cookie == 0) RtlRandomEx(Cookie);
if (*Cookie == 0) *Cookie = NtGetTickCount();
*Cache = (PVOID)((ULONG_PTR)procedure ^ (ULONG_PTR)*Cookie);
MemoryBarrier();