Commit de46c229 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

intended. Return error in that case.
parent 5c5a6217
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment