[*] 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, 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,7 +373,7 @@ namespace Aurora
dwDesiredAccess = GENERIC_READ;
}
if ((hHandle = pCreateFile2(lpFileName,
if ((hHandle = pCreateFile2W(lpFileName,
dwDesiredAccess,
dwShareMode,
dwCreationDisposition,
@ -385,7 +385,7 @@ namespace Aurora
lpFileName = L"CON";
}
return pCreateFile2(lpFileName,
return pCreateFile2W(lpFileName,
dwDesiredAccess,
dwShareMode,
dwCreationDisposition,

View File

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