mirror of
https://github.com/reactos/wine.git
synced 2025-02-17 19:39:00 +00:00
windowscodecs: Don't treat S_FALSE as failure.
This commit is contained in:
parent
542652deab
commit
7a728d1813
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user