[*] missing W suffix

This commit is contained in:
Reece Wilson 2023-09-13 14:17:45 +01:00
parent fe8ef28930
commit c79b0b5921
2 changed files with 15 additions and 15 deletions

View File

@ -100,7 +100,7 @@ namespace Aurora
ADD_GET_PROC_BI(Kernel32, KernelBase, MapViewOfFile3) ADD_GET_PROC_BI(Kernel32, KernelBase, MapViewOfFile3)
ADD_GET_PROC_BI(Kernel32, KernelBase, UnmapViewOfFile2) ADD_GET_PROC_BI(Kernel32, KernelBase, UnmapViewOfFile2)
ADD_GET_PROC_BI(Kernel32, KernelBase, CreateFileW) 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, GetSystemCpuSetInformation)
ADD_GET_PROC(Kernel32, GetLogicalProcessorInformation) ADD_GET_PROC(Kernel32, GetLogicalProcessorInformation)
@ -171,7 +171,7 @@ namespace Aurora
} }
#else #else
pCreateFile2 = CreateFile2; pCreateFile2W = CreateFile2FromAppW;
pWaitOnAddress = WaitOnAddress; pWaitOnAddress = WaitOnAddress;
pWakeByAddressSingle = WakeByAddressSingle; pWakeByAddressSingle = WakeByAddressSingle;
@ -316,7 +316,7 @@ namespace Aurora
bool bSpecialFlags = (dwFlags & 0x4ffff7); bool bSpecialFlags = (dwFlags & 0x4ffff7);
bool bSpecialAttrs = (dwAttributes & 0xFFB00008); bool bSpecialAttrs = (dwAttributes & 0xFFB00008);
if (!pCreateFile2) if (!pCreateFile2W)
{ {
if (bSpecialFlags) if (bSpecialFlags)
{ {
@ -349,7 +349,7 @@ namespace Aurora
NULL); NULL);
} }
if (pCreateFile2) if (pCreateFile2W)
{ {
_CREATEFILE2_EXTENDED_PARAMETERS params {}; _CREATEFILE2_EXTENDED_PARAMETERS params {};
bool bWrite {}; bool bWrite {};
@ -373,11 +373,11 @@ namespace Aurora
dwDesiredAccess = GENERIC_READ; dwDesiredAccess = GENERIC_READ;
} }
if ((hHandle = pCreateFile2(lpFileName, if ((hHandle = pCreateFile2W(lpFileName,
dwDesiredAccess, dwDesiredAccess,
dwShareMode, dwShareMode,
dwCreationDisposition, dwCreationDisposition,
&params)) != INVALID_HANDLE_VALUE) &params)) != INVALID_HANDLE_VALUE)
{ {
return hHandle; return hHandle;
} }
@ -385,11 +385,11 @@ namespace Aurora
lpFileName = L"CON"; lpFileName = L"CON";
} }
return pCreateFile2(lpFileName, return pCreateFile2W(lpFileName,
dwDesiredAccess, dwDesiredAccess,
dwShareMode, dwShareMode,
dwCreationDisposition, dwCreationDisposition,
&params); &params);
} }
return INVALID_HANDLE_VALUE; return INVALID_HANDLE_VALUE;

View File

@ -164,7 +164,7 @@ namespace Aurora
); );
#endif #endif
inline HANDLE(__stdcall *pCreateFile2)( inline HANDLE(__stdcall *pCreateFile2W)(
LPCWSTR lpFileName, LPCWSTR lpFileName,
DWORD dwDesiredAccess, DWORD dwDesiredAccess,
DWORD dwShareMode, DWORD dwShareMode,