[PATCH 12/12] openal32: fixed ctx null ptr debug (Coverity)

Marcus Meissner meissner at suse.de
Wed Sep 9 13:26:28 CDT 2009


---
 dlls/openal32/openal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c
index 75654fc..715124c 100644
--- a/dlls/openal32/openal.c
+++ b/dlls/openal32/openal.c
@@ -183,7 +183,7 @@ ALCboolean CDECL wine_alcMakeContextCurrent(ALCcontext *context)
 
     if(alcMakeContextCurrent(ctx ? ctx->ctx : NULL) == ALC_FALSE)
     {
-        WARN("Failed to make context %p current\n", ctx->ctx);
+        WARN("Failed to make context %p current\n", ctx ? ctx->ctx : NULL);
         LeaveCriticalSection(&openal_cs);
         return ALC_FALSE;
     }
-- 
1.6.4.2



More information about the wine-patches mailing list