]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/db.cpp
switched back to old use of DrawBitmap for transparent bitmaps
[wxWidgets.git] / src / common / db.cpp
index 0a6ab1db6ed40b9d54c1ff7b8edb466e3a2e16fd..e0bcf041b1de713fa9e7a3d674374fd11b14bc70 100644 (file)
@@ -2617,7 +2617,9 @@ bool GetDataSource(HENV henv, char *Dsn, SWORD DsnMax, char *DsDesc, SWORD DsDes
        if (SQLDataSources(henv, direction, (UCHAR FAR *) Dsn, DsnMax, &cb1,
                                                         (UCHAR FAR *) DsDesc, DsDescMax, &cb2) == SQL_SUCCESS)
        {
-               DsDesc[cb2+1] = 0;  // Set the terminating character for the string
+#ifndef _IODBC_
+         DsDesc[cb2+1] = 0;  // Set the terminating character for the string
+#endif
                return(TRUE);
        }
        else