ole32: Return if out of memory (Coverity)

André Hentschel nerv at dawncrow.de
Mon Sep 26 15:45:34 CDT 2011


my first try with coverity
msg->Buffer otherwise gets used after that
CID 1528
---
 dlls/ole32/rpc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c
index 8ac5d2d..e3bb8ba 100644
--- a/dlls/ole32/rpc.c
+++ b/dlls/ole32/rpc.c
@@ -539,7 +539,7 @@ static HRESULT WINAPI ServerRpcChannelBuffer_GetBuffer(LPRPCCHANNELBUFFER iface,
         if (msg->Buffer)
             status = RPC_S_OK;
         else
-            status = ERROR_OUTOFMEMORY;
+            return HRESULT_FROM_WIN32(ERROR_OUTOFMEMORY);
     }
     else
         status = I_RpcGetBuffer(msg);
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list