Kirill K. Smirnov : oleaut32: Return correct error code.
Alexandre Julliard
julliard at winehq.org
Thu Oct 16 06:07:19 CDT 2008
Module: wine
Branch: master
Commit: fd6d2b4d0c2012d4ac281069df1ddf17fa816fa2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fd6d2b4d0c2012d4ac281069df1ddf17fa816fa2
Author: Kirill K. Smirnov <lich at math.spbu.ru>
Date: Thu Oct 16 13:20:54 2008 +0400
oleaut32: Return correct error code.
---
dlls/oleaut32/olepicture.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index ce6ad16..4b45779 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -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;
More information about the wine-cvs
mailing list