PATCH: LoadTypeLibEx error checking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
     }



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux