Commit c31c4454 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

odbc32: Don't crash on null pointers while TRACE enabled.

parent 7371d0d2
......@@ -959,9 +959,9 @@ SQLRETURN WINAPI SQLDataSources(SQLHENV EnvironmentHandle,
if (TRACE_ON(odbc))
{
TRACE("returns: %d \t", ret);
if (*NameLength1 > 0)
if (NameLength1 && *NameLength1 > 0)
TRACE("DataSource = %s,", ServerName);
if (*NameLength2 > 0)
if (NameLength2 && *NameLength2 > 0)
TRACE(" Description = %s", Description);
TRACE("\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment