From 074743d6e886eb93bb49e6de3ad35005dc3cf2b2 Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Wed, 22 Jul 2026 14:44:13 -0700 Subject: [PATCH] Windows: Explicitly use *A/*W Win32 functions --- Source/Windows/Common/FEXUnixLib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Windows/Common/FEXUnixLib.cpp b/Source/Windows/Common/FEXUnixLib.cpp index 4b6652a2b..979782395 100644 --- a/Source/Windows/Common/FEXUnixLib.cpp +++ b/Source/Windows/Common/FEXUnixLib.cpp @@ -247,8 +247,8 @@ SHMSlotResult AllocateSHMSlots(void* SHMBase, uint32_t MapSize, uint32_t MaxSize } // Opaque handle path, doesn't support resizing. - auto handle = CreateFile(fextl::fmt::format("/dev/shm/fex-{}-stats", Illegal::linux_getpid()).c_str(), GENERIC_READ | GENERIC_WRITE, - FILE_SHARE_READ, nullptr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr); + auto handle = CreateFileA(fextl::fmt::format("/dev/shm/fex-{}-stats", Illegal::linux_getpid()).c_str(), GENERIC_READ | GENERIC_WRITE, + FILE_SHARE_READ, nullptr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr); // Create the section mapping for the file handle for the full size. HANDLE SectionMapping; @@ -284,7 +284,7 @@ void DeleteSHMStatsFile() { } // Legacy Proton path. - DeleteFile(fextl::fmt::format("/dev/shm/fex-{}-stats", Illegal::linux_getpid()).c_str()); + DeleteFileA(fextl::fmt::format("/dev/shm/fex-{}-stats", Illegal::linux_getpid()).c_str()); } } // namespace FEX::Windows::UnixLib