[NETKVM] Fix calling convention for callback and variadic functions

Addendum to 4c37757e81.
This commit is contained in:
Dmitry Borisov 2022-03-09 19:17:22 +06:00 committed by Victor Perevertkin
parent dd5a634611
commit dc6dfbf668
3 changed files with 9 additions and 9 deletions

View file

@ -2209,7 +2209,7 @@ void ParaNdis_ReportLinkStatus(PARANDIS_ADAPTER *pContext, BOOLEAN bForce)
ParaNdis_IndicateConnect(pContext, bConnected, bForce);
}
static BOOLEAN RestartQueueSynchronously(tSynchronizedContext *SyncContext)
static BOOLEAN NTAPI RestartQueueSynchronously(tSynchronizedContext *SyncContext)
{
struct virtqueue * _vq = (struct virtqueue *) SyncContext->Parameter;
bool res = true;

View file

@ -51,25 +51,25 @@ static VOID NTAPI ParaNdis_OnBugCheck(
);
static VOID ParaNdis_PrepareBugCheckData();
typedef BOOLEAN (*KeRegisterBugCheckReasonCallbackType) (
typedef BOOLEAN (NTAPI *KeRegisterBugCheckReasonCallbackType) (
__out PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord,
__in PKBUGCHECK_REASON_CALLBACK_ROUTINE CallbackRoutine,
__in KBUGCHECK_CALLBACK_REASON Reason,
__in PUCHAR Component
);
typedef BOOLEAN (*KeDeregisterBugCheckReasonCallbackType) (
typedef BOOLEAN (NTAPI *KeDeregisterBugCheckReasonCallbackType) (
__inout PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord
);
typedef ULONG (*vDbgPrintExType)(
typedef ULONG (NTAPI *vDbgPrintExType)(
__in ULONG ComponentId,
__in ULONG Level,
__in PCCH Format,
__in va_list arglist
);
static ULONG DummyPrintProcedure(
static ULONG NTAPI DummyPrintProcedure(
__in ULONG ComponentId,
__in ULONG Level,
__in PCCH Format,
@ -78,7 +78,7 @@ static ULONG DummyPrintProcedure(
{
return 0;
}
static BOOLEAN KeRegisterBugCheckReasonCallbackDummyProc(
static BOOLEAN NTAPI KeRegisterBugCheckReasonCallbackDummyProc(
__out PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord,
__in PKBUGCHECK_REASON_CALLBACK_ROUTINE CallbackRoutine,
__in KBUGCHECK_CALLBACK_REASON Reason,
@ -89,7 +89,7 @@ static BOOLEAN KeRegisterBugCheckReasonCallbackDummyProc(
return FALSE;
}
BOOLEAN KeDeregisterBugCheckReasonCallbackDummyProc(
BOOLEAN NTAPI KeDeregisterBugCheckReasonCallbackDummyProc(
__inout PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord
)
{
@ -105,7 +105,7 @@ KBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord;
#if defined(DPFLTR_MASK)
//common case, except Win2K
static void DebugPrint(const char *fmt, ...)
static void __cdecl DebugPrint(const char *fmt, ...)
{
va_list list;
va_start(list, fmt);

View file

@ -500,7 +500,7 @@ typedef struct _tagSynchronizedContext
PVOID Parameter;
}tSynchronizedContext;
typedef BOOLEAN (*tSynchronizedProcedure)(tSynchronizedContext *context);
typedef BOOLEAN (NTAPI *tSynchronizedProcedure)(tSynchronizedContext *context);
/**********************************************************
LAZY release procedure returns buffers to VirtIO