Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
618be087
Commit
618be087
authored
Jan 24, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmpapi: SnmpUtilDbgPrint() is a vararg and not an stdcall function.
parent
8d50f9d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
main.c
dlls/snmpapi/main.c
+8
-1
snmpapi.spec
dlls/snmpapi/snmpapi.spec
+1
-1
snmp.h
include/snmp.h
+1
-1
No files found.
dlls/snmpapi/main.c
View file @
618be087
...
...
@@ -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
WINAPI
V
SnmpUtilDbgPrint
(
INT
loglevel
,
LPSTR
format
,
...)
{
FIXME
(
"(%d, %s)
\n
"
,
loglevel
,
debugstr_a
(
format
));
}
...
...
dlls/snmpapi/snmpapi.spec
View file @
618be087
...
...
@@ -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)
...
...
include/snmp.h
View file @
618be087
...
...
@@ -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
WINAPI
V
SnmpUtilDbgPrint
(
int
nLogLevel
,
LPSTR
szFormat
,
...);
#ifdef __cplusplus
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment