git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5710
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
* description upon return
*/
{
* description upon return
*/
{
- if (SQLDataSources(henv, direction, (UCHAR FAR *) Dsn, DsnMax, &cb,
- (UCHAR FAR *) DsDesc, DsDescMax, &cb) == SQL_SUCCESS)
+ if (SQLDataSources(henv, direction, (UCHAR FAR *) Dsn, DsnMax, &cb1,
+ (UCHAR FAR *) DsDesc, DsDescMax, &cb2) == SQL_SUCCESS)
- DsDesc[cb+1] = 0; // Set the terminating character for the string
+ DsDesc[cb2+1] = 0; // Set the terminating character for the string