oleaut32: Return correct error code.

This commit is contained in:
Kirill K. Smirnov 2008-10-16 13:20:54 +04:00 committed by Alexandre Julliard
parent 4dfaf90ab2
commit fd6d2b4d0c
1 changed files with 1 additions and 1 deletions

View File

@ -1802,7 +1802,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
hr=IStream_Read(pStm,header,8,&xread); hr=IStream_Read(pStm,header,8,&xread);
if (hr || xread!=8) { if (hr || xread!=8) {
ERR("Failure while reading picture header (hr is %x, nread is %d).\n",hr,xread); ERR("Failure while reading picture header (hr is %x, nread is %d).\n",hr,xread);
return hr; return (hr?hr:E_FAIL);
} }
headerread += xread; headerread += xread;
xread = 0; xread = 0;