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
46f7f76b
Commit
46f7f76b
authored
May 20, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Improve SnmpExtensionInit stub.
parent
68991faf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
Makefile.in
dlls/inetmib1/Makefile.in
+1
-1
main.c
dlls/inetmib1/main.c
+6
-0
main.c
dlls/inetmib1/tests/main.c
+0
-1
No files found.
dlls/inetmib1/Makefile.in
View file @
46f7f76b
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
inetmib1.dll
IMPORTS
=
kernel32
IMPORTS
=
snmpapi
kernel32
C_SRCS
=
\
main.c
...
...
dlls/inetmib1/main.c
View file @
46f7f76b
...
...
@@ -47,12 +47,18 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return
TRUE
;
}
static
UINT
mib2System
[]
=
{
1
,
3
,
6
,
1
,
2
,
1
,
1
};
BOOL
WINAPI
SnmpExtensionInit
(
DWORD
dwUptimeReference
,
HANDLE
*
phSubagentTrapEvent
,
AsnObjectIdentifier
*
pFirstSupportedRegion
)
{
AsnObjectIdentifier
myOid
=
DEFINE_OID
(
mib2System
);
FIXME
(
"(%d, %p, %p): stub
\n
"
,
dwUptimeReference
,
phSubagentTrapEvent
,
pFirstSupportedRegion
);
*
phSubagentTrapEvent
=
NULL
;
SnmpUtilOidCpy
(
pFirstSupportedRegion
,
&
myOid
);
return
TRUE
;
}
...
...
dlls/inetmib1/tests/main.c
View file @
46f7f76b
...
...
@@ -45,7 +45,6 @@ static void testInit(void)
*/
ret
=
pInit
(
0
,
&
event
,
&
oid
);
ok
(
ret
,
"SnmpExtensionInit failed: %d
\n
"
,
GetLastError
());
todo_wine
ok
(
!
strcmp
(
"1.3.6.1.2.1.1"
,
SnmpUtilOidToA
(
&
oid
)),
"Expected 1.3.6.1.2.1.1, got %s
\n
"
,
SnmpUtilOidToA
(
&
oid
));
}
...
...
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