Commit 46f7f76b authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

inetmib1: Improve SnmpExtensionInit stub.

parent 68991faf
...@@ -3,7 +3,7 @@ TOPOBJDIR = ../.. ...@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = inetmib1.dll MODULE = inetmib1.dll
IMPORTS = kernel32 IMPORTS = snmpapi kernel32
C_SRCS = \ C_SRCS = \
main.c main.c
......
...@@ -47,12 +47,18 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -47,12 +47,18 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE; return TRUE;
} }
static UINT mib2System[] = { 1,3,6,1,2,1,1 };
BOOL WINAPI SnmpExtensionInit(DWORD dwUptimeReference, BOOL WINAPI SnmpExtensionInit(DWORD dwUptimeReference,
HANDLE *phSubagentTrapEvent, AsnObjectIdentifier *pFirstSupportedRegion) HANDLE *phSubagentTrapEvent, AsnObjectIdentifier *pFirstSupportedRegion)
{ {
AsnObjectIdentifier myOid = DEFINE_OID(mib2System);
FIXME("(%d, %p, %p): stub\n", dwUptimeReference, phSubagentTrapEvent, FIXME("(%d, %p, %p): stub\n", dwUptimeReference, phSubagentTrapEvent,
pFirstSupportedRegion); pFirstSupportedRegion);
*phSubagentTrapEvent = NULL; *phSubagentTrapEvent = NULL;
SnmpUtilOidCpy(pFirstSupportedRegion, &myOid);
return TRUE; return TRUE;
} }
......
...@@ -45,7 +45,6 @@ static void testInit(void) ...@@ -45,7 +45,6 @@ static void testInit(void)
*/ */
ret = pInit(0, &event, &oid); ret = pInit(0, &event, &oid);
ok(ret, "SnmpExtensionInit failed: %d\n", GetLastError()); ok(ret, "SnmpExtensionInit failed: %d\n", GetLastError());
todo_wine
ok(!strcmp("1.3.6.1.2.1.1", SnmpUtilOidToA(&oid)), ok(!strcmp("1.3.6.1.2.1.1", SnmpUtilOidToA(&oid)),
"Expected 1.3.6.1.2.1.1, got %s\n", SnmpUtilOidToA(&oid)); "Expected 1.3.6.1.2.1.1, got %s\n", SnmpUtilOidToA(&oid));
} }
......
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