From 0df0304048e30fa9b474b45d6c8ef28977da4568 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 21 Jan 2003 19:29:33 +0000 Subject: [PATCH] Print a large failure message if we try to load stdole32.tlb and fail. --- dlls/oleaut32/typelib.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 2b1070180a1..0d30b16b13b 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -284,8 +284,8 @@ HRESULT WINAPI LoadTypeLibEx( WCHAR *pIndexStr; HRESULT res; INT index = 1; - TRACE("(%s,%d,%p)\n",debugstr_w(szFile), regkind, pptLib); + TRACE("(%s,%d,%p)\n",debugstr_w(szFile), regkind, pptLib); if(!SearchPathW(NULL,szFile,NULL,sizeof(szPath)/sizeof(WCHAR),szPath, NULL)) { @@ -301,8 +301,29 @@ HRESULT WINAPI LoadTypeLibEx( return TYPE_E_CANTLOADLIBRARY; if (GetFileAttributesW(szFileCopy) & FILE_ATTRIBUTE_DIRECTORY) return TYPE_E_CANTLOADLIBRARY; - } else + } else { + WCHAR tstpath[260]; + WCHAR stdole32tlb[] = { 's','t','d','o','l','e','3','2','.','t','l','b',0 }; + int i; + + lstrcpyW(tstpath,szFile); + CharLowerW(tstpath); + for (i=0;i