From c79b0b5921fa4e7ce22335c3a366cd6d5d129611 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Wed, 13 Sep 2023 14:17:45 +0100 Subject: [PATCH] [*] missing W suffix --- Source/AuProcAddresses.NT.cpp | 28 ++++++++++++++-------------- Source/AuProcAddresses.NT.hpp | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Source/AuProcAddresses.NT.cpp b/Source/AuProcAddresses.NT.cpp index 5a1fea49..efbce8fd 100644 --- a/Source/AuProcAddresses.NT.cpp +++ b/Source/AuProcAddresses.NT.cpp @@ -100,7 +100,7 @@ namespace Aurora ADD_GET_PROC_BI(Kernel32, KernelBase, MapViewOfFile3) ADD_GET_PROC_BI(Kernel32, KernelBase, UnmapViewOfFile2) ADD_GET_PROC_BI(Kernel32, KernelBase, CreateFileW) - ADD_GET_PROC_BI(Kernel32, KernelBase, CreateFile2) + ADD_GET_PROC_BI(Kernel32, KernelBase, CreateFile2W) ADD_GET_PROC(Kernel32, GetSystemCpuSetInformation) ADD_GET_PROC(Kernel32, GetLogicalProcessorInformation) @@ -171,7 +171,7 @@ namespace Aurora } #else - pCreateFile2 = CreateFile2; + pCreateFile2W = CreateFile2FromAppW; pWaitOnAddress = WaitOnAddress; pWakeByAddressSingle = WakeByAddressSingle; @@ -316,7 +316,7 @@ namespace Aurora bool bSpecialFlags = (dwFlags & 0x4ffff7); bool bSpecialAttrs = (dwAttributes & 0xFFB00008); - if (!pCreateFile2) + if (!pCreateFile2W) { if (bSpecialFlags) { @@ -349,7 +349,7 @@ namespace Aurora NULL); } - if (pCreateFile2) + if (pCreateFile2W) { _CREATEFILE2_EXTENDED_PARAMETERS params {}; bool bWrite {}; @@ -373,11 +373,11 @@ namespace Aurora dwDesiredAccess = GENERIC_READ; } - if ((hHandle = pCreateFile2(lpFileName, - dwDesiredAccess, - dwShareMode, - dwCreationDisposition, - ¶ms)) != INVALID_HANDLE_VALUE) + if ((hHandle = pCreateFile2W(lpFileName, + dwDesiredAccess, + dwShareMode, + dwCreationDisposition, + ¶ms)) != INVALID_HANDLE_VALUE) { return hHandle; } @@ -385,11 +385,11 @@ namespace Aurora lpFileName = L"CON"; } - return pCreateFile2(lpFileName, - dwDesiredAccess, - dwShareMode, - dwCreationDisposition, - ¶ms); + return pCreateFile2W(lpFileName, + dwDesiredAccess, + dwShareMode, + dwCreationDisposition, + ¶ms); } return INVALID_HANDLE_VALUE; diff --git a/Source/AuProcAddresses.NT.hpp b/Source/AuProcAddresses.NT.hpp index 333c974a..cb994536 100644 --- a/Source/AuProcAddresses.NT.hpp +++ b/Source/AuProcAddresses.NT.hpp @@ -164,7 +164,7 @@ namespace Aurora ); #endif - inline HANDLE(__stdcall *pCreateFile2)( + inline HANDLE(__stdcall *pCreateFile2W)( LPCWSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode,