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

This commit is contained in:
Francois Gouget 2007-01-24 15:39:26 +01:00 committed by Alexandre Julliard
parent 8d50f9d054
commit 618be0874a
3 changed files with 10 additions and 3 deletions

View File

@ -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));
}

View File

@ -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)

View File

@ -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
}