Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52224 Signed-off-by: Bernhard Übelacker bernhardu@mailbox.org --- dlls/inetmib1/tests/main.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
diff --git a/dlls/inetmib1/tests/main.c b/dlls/inetmib1/tests/main.c index a4a1dbe7cdb..5a48276074c 100644 --- a/dlls/inetmib1/tests/main.c +++ b/dlls/inetmib1/tests/main.c @@ -78,6 +78,18 @@ if (0) } }
+#define dump_oid(desc, oid) dump_oid_(__LINE__, desc, oid) +static void dump_oid_(int line, const char* desc, AsnObjectIdentifier *oid) +{ + char buf[100] = {}; + int i; + + for (i = 0; i < oid->idLength; i++) + sprintf(buf + strlen(buf), "%d.", oid->ids[i]); + + trace_(__FILE__, line)("%s: len=%u, %s\n", desc, oid->idLength, buf); +} + static void testQuery(void) { BOOL ret, moreData, noChange; @@ -439,6 +451,8 @@ if (0) /* crashes on native */ list.list = vars2; moreData = TRUE; noChange = FALSE; + dump_oid("vars[0].name", &vars[0].name); + dump_oid("vars2[0].name", &vars2[0].name); start_time = GetTickCount64(); do { ret = pSnmpExtensionQuery(SNMP_PDU_GETNEXT, &list, &error, &index); @@ -454,6 +468,9 @@ if (0) /* crashes on native */ "expected SNMP_ERRORSTATUS_NOERROR, got %d\n", error); ok(index == 0, "expected index 0, got %d\n", index); } + trace("index=%d\n", index); + dump_oid("vars[0].name", &vars[0].name); + dump_oid("vars2[0].name", &vars2[0].name); if (!ret) moreData = FALSE; else if (error)