]> git.saurik.com Git - wxWidgets.git/commitdiff
IODBC fix in GetDataSource
authorBart A.M. Jourquin <bart.jourquin@fucam.ac.be>
Thu, 27 Jan 2000 13:10:54 +0000 (13:10 +0000)
committerBart A.M. Jourquin <bart.jourquin@fucam.ac.be>
Thu, 27 Jan 2000 13:10:54 +0000 (13:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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