Commit 9de2ed97 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

oleaut32: Added LoadTypeLib failure test.

parent a9aafec2
......@@ -2813,6 +2813,17 @@ static void test_register_typelib(BOOL system_registration)
DeleteFileA( filenameA );
}
static void test_LoadTypeLib(void)
{
ITypeLib *tl;
HRESULT hres;
static const WCHAR kernel32_dllW[] = {'k','e','r','n','e','l','3','2','.','d','l','l',0};
hres = LoadTypeLib(kernel32_dllW, &tl);
ok(hres == TYPE_E_CANTLOADLIBRARY, "LoadTypeLib returned: %08x, expected TYPE_E_CANTLOADLIBRARY\n", hres);
}
START_TEST(typelib)
{
const char *filename;
......@@ -2839,5 +2850,5 @@ START_TEST(typelib)
test_register_typelib(TRUE);
test_register_typelib(FALSE);
test_create_typelibs();
test_LoadTypeLib();
}
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