The \\<nr> magic in LoadTypeLibEx found directories, which was not

intended. Return error in that case.
This commit is contained in:
Marcus Meissner 2002-01-22 18:28:51 +00:00 committed by Alexandre Julliard
parent 5c5a62170e
commit de46c22917
1 changed files with 2 additions and 0 deletions

View File

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