Commit 7a728d18 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

windowscodecs: Don't treat S_FALSE as failure.

parent 542652de
......@@ -1094,7 +1094,7 @@ static int _gif_inputfunc(GifFileType *gif, GifByteType *data, int len) {
}
hr = IStream_Read(stream, data, len, &bytesread);
if (hr != S_OK) bytesread = 0;
if (FAILED(hr)) bytesread = 0;
return bytesread;
}
......
......@@ -250,7 +250,7 @@ static jpeg_boolean source_mgr_fill_input_buffer(j_decompress_ptr cinfo)
hr = IStream_Read(This->stream, This->source_buffer, 1024, &bytesread);
if (hr != S_OK || bytesread == 0)
if (FAILED(hr) || bytesread == 0)
{
return FALSE;
}
......
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