Commit 04f5160c authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

ole32/tests: Don't crash when StgOpenStorage fails.

parent eb446e86
......@@ -3082,7 +3082,8 @@ if (hr == S_OK) {
/* writer mode */
hr = StgOpenStorage(fileW, NULL, STGM_DIRECT_SWMR | STGM_READWRITE | STGM_SHARE_DENY_WRITE, NULL, 0, &stg);
ok(hr == S_OK, "got %08x\n", hr);
if(hr == S_OK)
{
ref = IStorage_AddRef(stg);
IStorage_Release(stg);
......@@ -3095,6 +3096,7 @@ if (hr == S_OK) {
IDirectWriterLock_Release(dwlock);
IStorage_Release(stg);
}
DeleteFileW(fileW);
}
......
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