windowscodecs: Don't treat S_FALSE as failure.

This commit is contained in:
Vincent Povirk 2013-11-29 12:43:41 -06:00 committed by Alexandre Julliard
parent 542652deab
commit 7a728d1813
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}