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.@)
|
* 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));
|
FIXME("(%d, %s)\n", loglevel, debugstr_a(format));
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
@ stub SnmpUtilAnsiToUnicode
|
@ stub SnmpUtilAnsiToUnicode
|
||||||
@ stdcall SnmpUtilAsnAnyCpy(ptr ptr)
|
@ stdcall SnmpUtilAsnAnyCpy(ptr ptr)
|
||||||
@ stdcall SnmpUtilAsnAnyFree(ptr)
|
@ stdcall SnmpUtilAsnAnyFree(ptr)
|
||||||
@ stdcall SnmpUtilDbgPrint(long str)
|
@ varargs SnmpUtilDbgPrint(long str)
|
||||||
@ stdcall SnmpUtilIdsToA(ptr long)
|
@ stdcall SnmpUtilIdsToA(ptr long)
|
||||||
@ stdcall SnmpUtilMemAlloc(long)
|
@ stdcall SnmpUtilMemAlloc(long)
|
||||||
@ stdcall SnmpUtilMemFree(ptr)
|
@ stdcall SnmpUtilMemFree(ptr)
|
||||||
|
|
|
@ -289,7 +289,7 @@ DWORD WINAPI SnmpSvcGetUptime(void);
|
||||||
void WINAPI SnmpSvcSetLogLevel(int nLogLevel);
|
void WINAPI SnmpSvcSetLogLevel(int nLogLevel);
|
||||||
void WINAPI SnmpSvcSetLogType(int nLogType);
|
void WINAPI SnmpSvcSetLogType(int nLogType);
|
||||||
|
|
||||||
void WINAPI SnmpUtilDbgPrint(int nLogLevel, LPSTR szFormat, ...);
|
void WINAPIV SnmpUtilDbgPrint(int nLogLevel, LPSTR szFormat, ...);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue