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

Alexandre Julliard julliard at winehq.org
Wed Oct 21 15:15:14 CDT 2020


Module: wine
Branch: master
Commit: 45295c5e07f13c7ff98e73e5e0134b19d8f8aa17
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=45295c5e07f13c7ff98e73e5e0134b19d8f8aa17

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>

---

 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 e3222e63b6a..3f1a87aa5b3 100644
--- a/dlls/msado15/connection.c
+++ b/dlls/msado15/connection.c
@@ -190,7 +190,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