diff options
Diffstat (limited to 'plugins/Import/src')
-rw-r--r-- | plugins/Import/src/dbrw/dbintf.cpp | 3 | ||||
-rw-r--r-- | plugins/Import/src/dbrw/dbintf.h | 1 | ||||
-rw-r--r-- | plugins/Import/src/dbrw/dbsql.cpp | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/plugins/Import/src/dbrw/dbintf.cpp b/plugins/Import/src/dbrw/dbintf.cpp index 7f23dcc373..aae77e66ab 100644 --- a/plugins/Import/src/dbrw/dbintf.cpp +++ b/plugins/Import/src/dbrw/dbintf.cpp @@ -25,8 +25,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. CDbxSQLite::CDbxSQLite() : sql_prepare_len(0) { - m_hAPCWindow = CreateWindowEx(0, L"STATIC", NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL); - sql_prepare_add(ctc_stmts, ctc_stmts_prep, SQL_CTC_STMT_NUM); sql_prepare_add(evt_stmts, evt_stmts_prep, SQL_EVT_STMT_NUM); sql_prepare_add(set_stmts, set_stmts_prep, SQL_SET_STMT_NUM); @@ -40,7 +38,6 @@ CDbxSQLite::~CDbxSQLite() sql_finalize(*sql_prepare_stmt[i]); mir_free(sql_prepare_text); mir_free(sql_prepare_stmt); - DestroyWindow(m_hAPCWindow); } int CDbxSQLite::Open(const wchar_t *profile) diff --git a/plugins/Import/src/dbrw/dbintf.h b/plugins/Import/src/dbrw/dbintf.h index 2c558bf537..07b2a62a2b 100644 --- a/plugins/Import/src/dbrw/dbintf.h +++ b/plugins/Import/src/dbrw/dbintf.h @@ -94,7 +94,6 @@ struct CDbxSQLite : public MDatabaseCommon, public MZeroedObject { private: sqlite3 *m_sqlite; - HWND m_hAPCWindow; int sql_prepare_len; char **sql_prepare_text; diff --git a/plugins/Import/src/dbrw/dbsql.cpp b/plugins/Import/src/dbrw/dbsql.cpp index e403fac43b..3cfc5450f9 100644 --- a/plugins/Import/src/dbrw/dbsql.cpp +++ b/plugins/Import/src/dbrw/dbsql.cpp @@ -89,7 +89,7 @@ void CDbxSQLite::sql_server_sync(TSqlMessage *msg) { msg->hDoneEvent = CreateEvent(NULL, FALSE, FALSE, NULL); sql_server_sync_apc((UINT_PTR)msg); - PostMessage(m_hAPCWindow, WM_NULL, 0, 0); + PostMessage(Miranda_GetSystemWindow()->GetHwnd(), WM_NULL, 0, 0); WaitForSingleObject(msg->hDoneEvent, INFINITE); CloseHandle(msg->hDoneEvent); } |