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
47c5c590
Commit
47c5c590
authored
Aug 10, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmpapi/tests: Be more verbose on missing functions.
parent
5f161252
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
util.c
dlls/snmpapi/tests/util.c
+15
-9
No files found.
dlls/snmpapi/tests/util.c
View file @
47c5c590
...
...
@@ -23,7 +23,6 @@
#include <windef.h>
#include <snmp.h>
static
HMODULE
hSnmpapi
=
0
;
static
INT
(
WINAPI
*
pSnmpUtilAsnAnyCpy
)(
AsnAny
*
,
AsnAny
*
);
static
VOID
(
WINAPI
*
pSnmpUtilAsnAnyFree
)(
AsnAny
*
);
static
INT
(
WINAPI
*
pSnmpUtilOctetsCmp
)(
AsnOctetString
*
,
AsnOctetString
*
);
...
...
@@ -33,14 +32,21 @@ static INT (WINAPI *pSnmpUtilOctetsNCmp)(AsnOctetString*, AsnOctetString*, UINT
static
void
InitFunctionPtrs
(
void
)
{
hSnmpapi
=
GetModuleHandle
(
"snmpapi.dll"
);
pSnmpUtilAsnAnyCpy
=
(
void
*
)
GetProcAddress
(
hSnmpapi
,
"SnmpUtilAsnAnyCpy"
);
pSnmpUtilAsnAnyFree
=
(
void
*
)
GetProcAddress
(
hSnmpapi
,
"SnmpUtilAsnAnyFree"
);
pSnmpUtilOctetsCmp
=
(
void
*
)
GetProcAddress
(
hSnmpapi
,
"SnmpUtilOctetsCmp"
);
pSnmpUtilOctetsCpy
=
(
void
*
)
GetProcAddress
(
hSnmpapi
,
"SnmpUtilOctetsCpy"
);
pSnmpUtilOctetsFree
=
(
void
*
)
GetProcAddress
(
hSnmpapi
,
"SnmpUtilOctetsFree"
);
pSnmpUtilOctetsNCmp
=
(
void
*
)
GetProcAddress
(
hSnmpapi
,
"SnmpUtilOctetsNCmp"
);
HMODULE
hSnmpapi
=
GetModuleHandle
(
"snmpapi.dll"
);
#define SNMPAPI_GET_PROC(func) \
p ## func = (void*)GetProcAddress(hSnmpapi, #func); \
if(!p ## func) \
trace("GetProcAddress(%s) failed\n", #func);
SNMPAPI_GET_PROC
(
SnmpUtilAsnAnyCpy
)
SNMPAPI_GET_PROC
(
SnmpUtilAsnAnyFree
)
SNMPAPI_GET_PROC
(
SnmpUtilOctetsCmp
)
SNMPAPI_GET_PROC
(
SnmpUtilOctetsCpy
)
SNMPAPI_GET_PROC
(
SnmpUtilOctetsFree
)
SNMPAPI_GET_PROC
(
SnmpUtilOctetsNCmp
)
#undef SNMPAPI_GET_PROC
}
static
void
test_SnmpUtilOidToA
(
void
)
...
...
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