Skip to content

Commit 181a621

Browse files
committed
Update apiimport.c
1 parent 4f26290 commit 181a621

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

phlib/apiimport.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ FORCEINLINE
2828
PVOID PhpImportProcedure(
2929
_Inout_ PPH_INITONCE InitOnce,
3030
_Inout_ PVOID *Cache,
31-
_Inout_ PULONG_PTR Cookie,
31+
_Inout_ PULONG Cookie,
3232
_In_ PWSTR ModuleName,
3333
_In_ PSTR ProcedureName
3434
)
@@ -48,7 +48,7 @@ PVOID PhpImportProcedure(
4848
if (procedure = PhGetDllBaseProcedureAddress(module, ProcedureName, 0))
4949
{
5050
#if (PHNT_VERSION >= PHNT_WIN7)
51-
*Cookie = NtGetTickCount64();
51+
*Cookie = NtGetTickCount();
5252
#else
5353
*Cookie = GetTickCount();
5454
#endif
@@ -70,7 +70,7 @@ _##Name Name##_Import(VOID) \
7070
{ \
7171
static PH_INITONCE initOnce = PH_INITONCE_INIT; \
7272
static PVOID cache = NULL; \
73-
static ULONG_PTR cookie = 0; \
73+
static ULONG cookie = 0; \
7474
\
7575
return (_##Name)PhpImportProcedure(&initOnce, &cache, &cookie, Module, #Name); \
7676
}

0 commit comments

Comments
 (0)