mirror of
https://github.com/reactos/wine.git
synced 2025-02-16 19:10:35 +00:00
oleaut32: Return correct error code.
This commit is contained in:
parent
4dfaf90ab2
commit
fd6d2b4d0c
@ -1802,7 +1802,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
|
||||
hr=IStream_Read(pStm,header,8,&xread);
|
||||
if (hr || xread!=8) {
|
||||
ERR("Failure while reading picture header (hr is %x, nread is %d).\n",hr,xread);
|
||||
return hr;
|
||||
return (hr?hr:E_FAIL);
|
||||
}
|
||||
headerread += xread;
|
||||
xread = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user