mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 15:52:11 +00:00
odbc32: Don't crash on null pointers while TRACE enabled.
This commit is contained in:
parent
7371d0d2fc
commit
c31c4454aa
|
@ -959,9 +959,9 @@ SQLRETURN WINAPI SQLDataSources(SQLHENV EnvironmentHandle,
|
||||||
if (TRACE_ON(odbc))
|
if (TRACE_ON(odbc))
|
||||||
{
|
{
|
||||||
TRACE("returns: %d \t", ret);
|
TRACE("returns: %d \t", ret);
|
||||||
if (*NameLength1 > 0)
|
if (NameLength1 && *NameLength1 > 0)
|
||||||
TRACE("DataSource = %s,", ServerName);
|
TRACE("DataSource = %s,", ServerName);
|
||||||
if (*NameLength2 > 0)
|
if (NameLength2 && *NameLength2 > 0)
|
||||||
TRACE(" Description = %s", Description);
|
TRACE(" Description = %s", Description);
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue