mirror of
https://github.com/decompals/wibo.git
synced 2025-12-16 00:17:04 +00:00
Improve synchapi impls; fix heap races & 64-bit fixes
This commit is contained in:
@@ -90,8 +90,8 @@ LONGLONG timespecToFileTime(const timespec &ts) {
|
||||
if (ticks < 0) {
|
||||
return 0;
|
||||
}
|
||||
if (ticks > static_cast<__int128>(std::numeric_limits<LONGLONG>::max())) {
|
||||
return std::numeric_limits<LONGLONG>::max();
|
||||
if (ticks > static_cast<__int128>(std::numeric_limits<int64_t>::max())) {
|
||||
return std::numeric_limits<int64_t>::max();
|
||||
}
|
||||
return static_cast<LONGLONG>(ticks);
|
||||
#else
|
||||
@@ -829,6 +829,13 @@ NTSTATUS WINAPI NtQueryInformationProcess(HANDLE ProcessHandle, PROCESSINFOCLASS
|
||||
}
|
||||
}
|
||||
|
||||
NTSTATUS WINAPI LdrAddRefDll(ULONG Flags, HMODULE Module) {
|
||||
DEBUG_LOG("STUB: LdrAddRefDll(%x, %p)\n", Flags, Module);
|
||||
(void)Flags;
|
||||
(void)Module;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
} // namespace ntdll
|
||||
|
||||
#include "ntdll_trampolines.h"
|
||||
|
||||
Reference in New Issue
Block a user