PATCH: LoadTypeLibEx error checking

Marcus Meissner marcus at jet.franken.de
Tue Jan 22 12:29:58 CST 2002


Hi,

Ciao, Marcus

Changelog:
	The \\<nr> magic in LoadTypeLibEx found directories , which 
	was not intended. Return error in that case.

Index: typelib.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/typelib.c,v
retrieving revision 1.58
diff -u -r1.58 typelib.c
--- typelib.c	2002/01/09 19:10:59	1.58
+++ typelib.c	2002/01/22 16:39:07
@@ -280,6 +283,8 @@
 	    if(!SearchPathW(NULL,szFileCopy,NULL,sizeof(szPath)/sizeof(WCHAR),
 			    szPath,NULL))
 	        return TYPE_E_CANTLOADLIBRARY;
+	    if (GetFileAttributesW(szFileCopy) & FILE_ATTRIBUTE_DIRECTORY)
+		return TYPE_E_CANTLOADLIBRARY;
 	} else
 	    return TYPE_E_CANTLOADLIBRARY;
     }




More information about the wine-patches mailing list