]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/db.cpp
operator >> wxString eat word by default. \n Add wxTextInputStream::Get/SetStringSepa...
[wxWidgets.git] / src / common / db.cpp
index 30f8556094231bd85b3da8c0f8d09576fe2cb34b..073e09d2523ef49cb822f9e88fa7d1a125cee1e4 100644 (file)
@@ -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()