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

Alexandre Julliard julliard at winehq.org
Tue Apr 20 11:32:22 CDT 2010


Module: wine
Branch: master
Commit: c31c4454aa1ce35ee926f1ba6794a55de4073a12
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c31c4454aa1ce35ee926f1ba6794a55de4073a12

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Apr 20 02:27:50 2010 +0400

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

---

 dlls/odbc32/proxyodbc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
index 0928651..50a2f99 100644
--- a/dlls/odbc32/proxyodbc.c
+++ b/dlls/odbc32/proxyodbc.c
@@ -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");
         }




More information about the wine-cvs mailing list