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 = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = inetmib1.dll
IMPORTS = kernel32
IMPORTS = snmpapi kernel32
C_SRCS = \
main.c
......
......@@ -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;
}
......
......@@ -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));
}
......
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