oleaut32: Don't create non-existent typelib files.
This commit is contained in:
parent
6ee09e4d3c
commit
a414681648
|
@ -3405,8 +3405,7 @@ static HRESULT TLB_ReadTypeLib(LPCWSTR pszFileName, LPWSTR pszPath, UINT cchPath
|
|||
|
||||
if(file != pszFileName) heap_free(file);
|
||||
|
||||
h = CreateFileW(pszPath, GENERIC_READ, 0, NULL, OPEN_ALWAYS,
|
||||
FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
h = CreateFileW(pszPath, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if(h != INVALID_HANDLE_VALUE){
|
||||
FILE_NAME_INFORMATION *info;
|
||||
char data[MAX_PATH * sizeof(WCHAR) + sizeof(info->FileNameLength)];
|
||||
|
|
Loading…
Reference in New Issue