From fd6d2b4d0c2012d4ac281069df1ddf17fa816fa2 Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Thu, 16 Oct 2008 13:20:54 +0400 Subject: [PATCH] oleaut32: Return correct error code. --- dlls/oleaut32/olepicture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index ce6ad1642ec..4b457798100 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; -- 2.11.4.GIT