The \\<nr> magic in LoadTypeLibEx found directories, which was not
intended. Return error in that case.
This commit is contained in:
parent
5c5a62170e
commit
de46c22917
|
@ -280,6 +280,8 @@ HRESULT WINAPI LoadTypeLibEx(
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue