Skip to content

Commit fe277ae

Browse files
konakadoitsujin
authored andcommitted
Correct a few native API data types
1 parent c27ef1c commit fe277ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/util/thread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace dxvk {
8080
namespace 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"));

src/util/util_sleep.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)