Hans Leidekker : msado15: Avoid a crash with tracing on.

Alexandre Julliard julliard at winehq.org
Tue Mar 23 15:07:44 CDT 2021


Module: wine
Branch: oldstable
Commit: 40514b8a280d3089a3f3f32d9d0c3a8b3ef9cd14
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=40514b8a280d3089a3f3f32d9d0c3a8b3ef9cd14

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Oct 21 11:47:13 2020 +0200

msado15: Avoid a crash with tracing on.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 45295c5e07f13c7ff98e73e5e0134b19d8f8aa17)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/msado15/connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msado15/connection.c b/dlls/msado15/connection.c
index b90486b7cd9..1361f6490c5 100644
--- a/dlls/msado15/connection.c
+++ b/dlls/msado15/connection.c
@@ -179,7 +179,7 @@ static HRESULT WINAPI connection_put_ConnectionString( _Connection *iface, BSTR
     struct connection *connection = impl_from_Connection( iface );
     WCHAR *source = NULL;
 
-    TRACE( "%p, %s\n", connection, debugstr_w( !wcsstr( str, L"Password" ) ? L"<hidden>" : str ) );
+    TRACE( "%p, %s\n", connection, debugstr_w( str && !wcsstr( str, L"Password" ) ? L"<hidden>" : str ) );
 
     if (str && !(source = strdupW( str ))) return E_OUTOFMEMORY;
     heap_free( connection->datasource );




More information about the wine-cvs mailing list