mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Return STG_E_FILEALREADYEXISTS in ole32.StgOpenStorage if the file is
not a storage object.
This commit is contained in:
parent
270bc587d8
commit
973355f617
@ -5485,6 +5485,11 @@ HRESULT WINAPI StgOpenStorage(
|
||||
if (FAILED(hr))
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, newStorage);
|
||||
/*
|
||||
* According to the docs if the file is not a storage, return STG_E_FILEALREADYEXISTS
|
||||
*/
|
||||
if(hr == STG_E_INVALIDHEADER)
|
||||
return STG_E_FILEALREADYEXISTS;
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user