Commit 19b944d4 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oleaut32/tests: Basic test for invalid arguments in LoadTypeLib/LoadTypeLibEx.

parent cf45f3bc
......@@ -4996,6 +4996,22 @@ static void test_LoadTypeLib(void)
hres = LoadTypeLib(kernel32_dllW, &tl);
ok(hres == TYPE_E_CANTLOADLIBRARY, "LoadTypeLib returned: %08x, expected TYPE_E_CANTLOADLIBRARY\n", hres);
hres = LoadTypeLib(NULL, NULL);
ok(hres == E_INVALIDARG, "Got %#x.\n", hres);
tl = (void *)0xdeadbeef;
hres = LoadTypeLib(NULL, &tl);
ok(hres == E_INVALIDARG, "Got %#x.\n", hres);
ok(tl == (void *)0xdeadbeef, "Got %p.\n", tl);
hres = LoadTypeLibEx(NULL, REGKIND_NONE, NULL);
ok(hres == E_INVALIDARG, "Got %#x.\n", hres);
tl = (void *)0xdeadbeef;
hres = LoadTypeLibEx(NULL, REGKIND_NONE, &tl);
ok(hres == E_INVALIDARG, "Got %#x.\n", hres);
ok(tl == (void *)0xdeadbeef, "Got %p.\n", tl);
}
static void test_SetVarHelpContext(void)
......
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