File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ namespace dxvk {
8080namespace dxvk ::this_thread {
8181
8282 bool isInModuleDetachment () {
83- using PFN_RtlDllShutdownInProgress = BOOLEAN (WINAPI *)();
83+ using PFN_RtlDllShutdownInProgress = BOOLEAN (NTAPI *)();
8484
8585 static auto RtlDllShutdownInProgress = reinterpret_cast <PFN_RtlDllShutdownInProgress>(
8686 ::GetProcAddress (::GetModuleHandleW(L" ntdll.dll" ), "RtlDllShutdownInProgress"));
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ namespace dxvk {
5151#ifdef _WIN32
5252 // On Windows, we use NtDelayExecution which has units of 100ns.
5353 using TimerDuration = std::chrono::duration<int64_t , std::ratio<1 , 10000000 >>;
54- using NtQueryTimerResolutionProc = UINT (WINAPI *) (ULONG*, ULONG*, ULONG*);
55- using NtSetTimerResolutionProc = UINT (WINAPI *) (ULONG, BOOL , ULONG*);
56- using NtDelayExecutionProc = UINT (WINAPI *) (BOOL , LARGE_INTEGER*);
54+ using NtQueryTimerResolutionProc = LONG (NTAPI *) (ULONG*, ULONG*, ULONG*);
55+ using NtSetTimerResolutionProc = LONG (NTAPI *) (ULONG, BOOLEAN , ULONG*);
56+ using NtDelayExecutionProc = LONG (NTAPI *) (BOOLEAN , LARGE_INTEGER*);
5757 NtDelayExecutionProc NtDelayExecution = nullptr ;
5858#else
5959 // On other platforms, we use the std library, which calls through to nanosleep -- which is ns.
You can’t perform that action at this time.
0 commit comments