Marcus Meissner : wined3d: Handle NULL ptrs (Coverity).

Alexandre Julliard julliard at winehq.org
Tue Nov 24 12:40:22 CST 2009


Module: wine
Branch: master
Commit: a7e599db450ccd6a8dad83bf802f30022d1df772
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a7e599db450ccd6a8dad83bf802f30022d1df772

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Mon Nov 23 22:35:15 2009 +0100

wined3d: Handle NULL ptrs (Coverity).

---

 dlls/wined3d/volume.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/volume.c b/dlls/wined3d/volume.c
index bb5827e..5a80cb6 100644
--- a/dlls/wined3d/volume.c
+++ b/dlls/wined3d/volume.c
@@ -187,11 +187,13 @@ static HRESULT WINAPI IWineD3DVolumeImpl_GetContainer(IWineD3DVolume *iface, REF
 
     if (!ppContainer) {
         ERR("Called without a valid ppContainer.\n");
+        return E_FAIL;
     }
 
     /* Although surfaces can be standalone, volumes can't */
     if (!This->container) {
         ERR("Volume without an container. Should not happen.\n");
+        return E_FAIL;
     }
 
     TRACE("Relaying to QueryInterface\n");




More information about the wine-cvs mailing list