Stefan Leichter : kernel32: Fix OutputDebugStringA called with NULL pointer .
Alexandre Julliard
julliard at winehq.org
Thu May 31 13:30:41 CDT 2012
Module: wine
Branch: master
Commit: 68aa42a4191c50bb9bf2767c51a4b9c7b7aaef5e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=68aa42a4191c50bb9bf2767c51a4b9c7b7aaef5e
Author: Stefan Leichter <Stefan.Leichter at camline.com>
Date: Wed May 30 22:47:34 2012 +0200
kernel32: Fix OutputDebugStringA called with NULL pointer.
---
dlls/kernel32/debugger.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/debugger.c b/dlls/kernel32/debugger.c
index 7e1a860..528ba76 100644
--- a/dlls/kernel32/debugger.c
+++ b/dlls/kernel32/debugger.c
@@ -245,6 +245,8 @@ void WINAPI OutputDebugStringA( LPCSTR str )
static HANDLE DBWinMutex = NULL;
static BOOL mutex_inited = FALSE;
+ if (!str) str = "";
+
/* send string to attached debugger */
SERVER_START_REQ( output_debug_string )
{
More information about the wine-cvs
mailing list