IODBC fix in GetDataSource
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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,
|
if (SQLDataSources(henv, direction, (UCHAR FAR *) Dsn, DsnMax, &cb1,
|
||||||
(UCHAR FAR *) DsDesc, DsDescMax, &cb2) == SQL_SUCCESS)
|
(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);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user