X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3351164d4cf8adbb22a62141a3753ad60bdd0604..3096bd2fa7b88105bc54c08e3c878585de1a9b91:/src/common/db.cpp?ds=sidebyside diff --git a/src/common/db.cpp b/src/common/db.cpp index 553b712a8a..073e09d252 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -84,7 +84,7 @@ #include "wx/db.h" #endif -DbList* WXDLLEXPORT PtrBegDbList = 0; +DbList WXDLLEXPORT *PtrBegDbList = 0; #if __WXDEBUG__ > 0 #if wxMAJOR_VERSION == 2 @@ -774,8 +774,8 @@ void wxDB::Close(void) tiu = (CstructTablesInUse *)pNode->Data(); if (tiu->pDb == this) { - sprintf(s, "(%-20s) tableID:[%6lu] pDb:[%lu]", tiu->tableName,tiu->tableID,tiu->pDb); - sprintf(s2,"Orphaned found using pDb:[%lu]",this); + sprintf(s, "(%-20s) tableID:[%6lu] pDb:[%p]", tiu->tableName,tiu->tableID,tiu->pDb); + sprintf(s2,"Orphaned found using pDb:[%p]",this); wxMessageBox (s,s2); } pNode = pNode->Next(); @@ -783,7 +783,8 @@ void wxDB::Close(void) #endif // Copy the error messages to a global variable - for (int i = 0; i < DB_MAX_ERROR_HISTORY; i++) + int i; + for (i = 0; i < DB_MAX_ERROR_HISTORY; i++) strcpy(DBerrorList[i],errorList[i]); } // wxDB::Close() @@ -1728,7 +1729,7 @@ DBMS wxDB::Dbms(void) /********** GetDbConnection() **********/ -wxDB* WXDLLEXPORT GetDbConnection(DbStuff *pDbStuff) +wxDB WXDLLEXPORT *GetDbConnection(DbStuff *pDbStuff) { DbList *pList;