mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
snmpapi: SnmpUtilDbgPrint() is a vararg and not an stdcall function.
This commit is contained in:
parent
8d50f9d054
commit
618be0874a
@ -136,8 +136,15 @@ BOOL WINAPI DllMain(
|
||||
|
||||
/***********************************************************************
|
||||
* SnmpUtilDbgPrint (SNMPAPI.@)
|
||||
*
|
||||
* NOTES
|
||||
* The Microsoft headers claim this function uses the stdcall calling
|
||||
* convention. But stdcall functions cannot take a variable number of
|
||||
* arguments so this does not make sense. The stdcall specification is
|
||||
* probably ignored by Microsoft's compiler in this case. So declare it
|
||||
* correctly in Wine so it works with all compilers.
|
||||
*/
|
||||
void WINAPI SnmpUtilDbgPrint(INT loglevel, LPSTR format, ...)
|
||||
void WINAPIV SnmpUtilDbgPrint(INT loglevel, LPSTR format, ...)
|
||||
{
|
||||
FIXME("(%d, %s)\n", loglevel, debugstr_a(format));
|
||||
}
|
||||
|
@ -20,7 +20,7 @@
|
||||
@ stub SnmpUtilAnsiToUnicode
|
||||
@ stdcall SnmpUtilAsnAnyCpy(ptr ptr)
|
||||
@ stdcall SnmpUtilAsnAnyFree(ptr)
|
||||
@ stdcall SnmpUtilDbgPrint(long str)
|
||||
@ varargs SnmpUtilDbgPrint(long str)
|
||||
@ stdcall SnmpUtilIdsToA(ptr long)
|
||||
@ stdcall SnmpUtilMemAlloc(long)
|
||||
@ stdcall SnmpUtilMemFree(ptr)
|
||||
|
@ -289,7 +289,7 @@ DWORD WINAPI SnmpSvcGetUptime(void);
|
||||
void WINAPI SnmpSvcSetLogLevel(int nLogLevel);
|
||||
void WINAPI SnmpSvcSetLogType(int nLogType);
|
||||
|
||||
void WINAPI SnmpUtilDbgPrint(int nLogLevel, LPSTR szFormat, ...);
|
||||
void WINAPIV SnmpUtilDbgPrint(int nLogLevel, LPSTR szFormat, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user