Module: wine Branch: master Commit: 9de2ed97c978d23034b005a07382d933abca5522 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9de2ed97c978d23034b005a073...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Nov 15 17:45:35 2010 +0100
oleaut32: Added LoadTypeLib failure test.
---
dlls/oleaut32/tests/typelib.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c index ce40cb9..6a66e33 100644 --- a/dlls/oleaut32/tests/typelib.c +++ b/dlls/oleaut32/tests/typelib.c @@ -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(); }