[*] missing W suffix
This commit is contained in:
parent
fe8ef28930
commit
c79b0b5921
@ -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;
|
||||
|
@ -164,7 +164,7 @@ namespace Aurora
|
||||
);
|
||||
#endif
|
||||
|
||||
inline HANDLE(__stdcall *pCreateFile2)(
|
||||
inline HANDLE(__stdcall *pCreateFile2W)(
|
||||
LPCWSTR lpFileName,
|
||||
DWORD dwDesiredAccess,
|
||||
DWORD dwShareMode,
|
||||
|
Loading…
Reference in New Issue
Block a user