Windows: Fix using NT APIs on i386
While the MS docs don't include the NTAPI attribute here, these functions are presented with stdcall name mangling in the ntdll.lib import library in the Windows SDK (and likewise in the mingw import libraries). Therefore, add NTAPI (which expands to __stdcall) here to fix linking. Change-Id: I7d59b6a3c64823743498497a2ddc869e5556432c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
d064c26d2c
commit
6b6ddd377d
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include "qntdll_p.h"
|
#include "qntdll_p.h"
|
||||||
|
|
||||||
extern "C" NTSTATUS NTSYSCALLAPI NtQueryVolumeInformationFile(HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
extern "C" NTSTATUS NTSYSCALLAPI NTAPI NtQueryVolumeInformationFile(HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG,
|
||||||
FS_INFORMATION_CLASS);
|
FS_INFORMATION_CLASS);
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
// User mode version of ZwQueryKey, as per:
|
// User mode version of ZwQueryKey, as per:
|
||||||
// https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-zwquerykey
|
// https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-zwquerykey
|
||||||
extern "C" NTSTATUS NTSYSCALLAPI NtQueryKey(HANDLE KeyHandle, int KeyInformationClass,
|
extern "C" NTSTATUS NTSYSCALLAPI NTAPI NtQueryKey(HANDLE KeyHandle, int KeyInformationClass,
|
||||||
PVOID KeyInformation, ULONG Length, PULONG ResultLength);
|
PVOID KeyInformation, ULONG Length, PULONG ResultLength);
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user