Commit d5614bff authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

urlmon: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.

parent 4200022d
......@@ -61,11 +61,11 @@ HRESULT UMCreateStreamOnCacheFile(LPCWSTR pszURL,
if(!CreateUrlCacheEntryW(url, dwSize, ext, pszFileName, 0))
hr = HRESULT_FROM_WIN32(GetLastError());
else
hr = 0;
hr = S_OK;
heap_free(url);
if (hr)
if (hr != S_OK)
return hr;
TRACE("Opening %s\n", debugstr_w(pszFileName) );
......
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