Windows: Use GetModuleHandleW() to avoid unnecessary string conversions

This commit is contained in:
Brendan Shanks committed 2026-07-22 15:16:44 -07:00
1 parent f2e35f336f
commit 8b446de059
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -527,7 +527,7 @@ void BTCpuProcessInit() {
SignalDelegator = fextl::make_unique<FEX::DummyHandlers::DummySignalDelegator>();
SyscallHandler = fextl::make_unique<WowSyscallHandler>();
const auto NtDll = GetModuleHandle("ntdll.dll");
const auto NtDll = GetModuleHandleW(L"ntdll.dll");
const bool IsWine = !!GetProcAddress(NtDll, "wine_get_version");
OvercommitTracker.emplace(IsWine);