diff options
author | Tavis Ormandy <taviso@gmail.com> | 2020-09-07 18:04:12 +0300 |
---|---|---|
committer | Tavis Ormandy <taviso@gmail.com> | 2020-09-07 18:04:12 +0300 |
commit | 6d4970bd4a4d6b55ecda21f99b06a2b1d719e817 (patch) | |
tree | d65ab60953021bc9bb088fb9ff19185ad1e9310d | |
parent | 5b671d6ae452e1073da6ade6e244f84daca462fa (diff) |
add new imports to fix #84
-rw-r--r-- | peloader/winapi/ProcessThreads.c | 12 | ||||
-rw-r--r-- | peloader/winapi/SystemTime.c | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/peloader/winapi/ProcessThreads.c b/peloader/winapi/ProcessThreads.c index 594f405..726b33c 100644 --- a/peloader/winapi/ProcessThreads.c +++ b/peloader/winapi/ProcessThreads.c @@ -107,11 +107,21 @@ static VOID WINAPI AcquireSRWLockExclusive(PVOID SRWLock) DebugLog("%p", SRWLock); } +static VOID WINAPI AcquireSRWLockShared(PVOID SRWLock) +{ + DebugLog("%p", SRWLock); +} + static VOID WINAPI ReleaseSRWLockExclusive(PVOID SRWLock) { DebugLog("%p", SRWLock); } +static VOID WINAPI ReleaseSRWLockShared(PVOID SRWLock) +{ + DebugLog("%p", SRWLock); +} + static HANDLE WINAPI CreateMutexW(PVOID lpMutexAttributes, BOOL bInitialOwner, PWCHAR lpName) { DebugLog("%p, %u, %p"); @@ -184,8 +194,10 @@ DECLARE_CRT_EXPORT("InterlockedIncrement", InterlockedIncrement); DECLARE_CRT_EXPORT("InterlockedCompareExchange", InterlockedCompareExchange); DECLARE_CRT_EXPORT("CreateSemaphoreW", CreateSemaphoreW); DECLARE_CRT_EXPORT("AcquireSRWLockExclusive", AcquireSRWLockExclusive); +DECLARE_CRT_EXPORT("AcquireSRWLockShared", AcquireSRWLockShared); DECLARE_CRT_EXPORT("InitializeSRWLock", InitializeSRWLock); DECLARE_CRT_EXPORT("ReleaseSRWLockExclusive", ReleaseSRWLockExclusive); +DECLARE_CRT_EXPORT("ReleaseSRWLockShared", ReleaseSRWLockShared); DECLARE_CRT_EXPORT("SetThreadpoolTimer", SetThreadpoolTimer); DECLARE_CRT_EXPORT("WaitForThreadpoolTimerCallbacks", WaitForThreadpoolTimerCallbacks); DECLARE_CRT_EXPORT("GetCurrentThreadId", GetCurrentThreadId); diff --git a/peloader/winapi/SystemTime.c b/peloader/winapi/SystemTime.c index 0795e76..d8f7dbc 100644 --- a/peloader/winapi/SystemTime.c +++ b/peloader/winapi/SystemTime.c @@ -62,6 +62,11 @@ STATIC DWORD WINAPI GetTickCount(VOID) return 0; } +STATIC ULONGLONG WINAPI GetTickCount64(VOID) +{ + return 0; +} + STATIC BOOL WINAPI QueryPerformanceFrequency(PVOID lpFrequency) { SetLastError(0); @@ -89,5 +94,6 @@ DECLARE_CRT_EXPORT("GetSystemTimeAsFileTime", GetSystemTimeAsFileTime); DECLARE_CRT_EXPORT("QueryPerformanceCounter", QueryPerformanceCounter); DECLARE_CRT_EXPORT("QueryPerformanceFrequency", QueryPerformanceFrequency); DECLARE_CRT_EXPORT("GetTickCount", GetTickCount); +DECLARE_CRT_EXPORT("GetTickCount64", GetTickCount64); DECLARE_CRT_EXPORT("GetProcessTimes", GetProcessTimes); DECLARE_CRT_EXPORT("DosDateTimeToFileTime", DosDateTimeToFileTime); |