X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27b3bd6a59e2fbc03f4753707fd767f23e4b19bf..f2c88494b6978bee502f4c856ba9dc7e3b7c3954:/src/common/db.cpp diff --git a/src/common/db.cpp b/src/common/db.cpp index d7843f4f39..a43f461158 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -858,7 +858,7 @@ bool wxDb::Open(const wxString& inConnectStr, SQLHWND parentWnd, bool failOnData retcode = SQLDriverConnect(hdbc, parentWnd, (SQLTCHAR FAR *)inConnectionStr.c_str(), (SWORD)inConnectionStr.length(), (SQLTCHAR FAR *)outConnectBuffer, - sizeof(outConnectBuffer), &outConnectBufferLen, SQL_DRIVER_COMPLETE ); + WXSIZEOF(outConnectBuffer), &outConnectBufferLen, SQL_DRIVER_COMPLETE ); if ((retcode != SQL_SUCCESS) && (retcode != SQL_SUCCESS_WITH_INFO)) @@ -963,7 +963,7 @@ bool wxDb::Open(wxDb *copyDb) retcode = SQLDriverConnect(hdbc, NULL, (SQLTCHAR FAR *)inConnectionStr.c_str(), (SWORD)inConnectionStr.length(), (SQLTCHAR FAR *)outConnectBuffer, - sizeof(outConnectBuffer), &outConnectBufferLen, SQL_DRIVER_COMPLETE); + WXSIZEOF(outConnectBuffer), &outConnectBufferLen, SQL_DRIVER_COMPLETE); if ((retcode != SQL_SUCCESS) && (retcode != SQL_SUCCESS_WITH_INFO))