Commit 618be087 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

snmpapi: SnmpUtilDbgPrint() is a vararg and not an stdcall function.

parent 8d50f9d0
...@@ -136,8 +136,15 @@ BOOL WINAPI DllMain( ...@@ -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 @@ ...@@ -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); ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment