urlmon: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.
This commit is contained in:
parent
4200022ddb
commit
d5614bfff4
|
@ -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) );
|
||||
|
|
Loading…
Reference in New Issue