msado15: Avoid a crash with tracing on.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9415d45a80
commit
45295c5e07
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue