diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-21 13:32:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-21 13:32:01 +0000 |
commit | e9c3e5ef054efc0904bf2f6044c3cae3751e74b5 (patch) | |
tree | 2209ad49a960cf6311cea35f99158da85d6cc954 /plugins/DbEditorPP | |
parent | c862405581fafcf9830be2ed4098313518b699c1 (diff) |
crash fix when dbeditorpp is launched from the command string
git-svn-id: http://svn.miranda-ng.org/main/trunk@10261 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r-- | plugins/DbEditorPP/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp index 74dd0b2574..ebdd85920b 100644 --- a/plugins/DbEditorPP/src/main.cpp +++ b/plugins/DbEditorPP/src/main.cpp @@ -143,6 +143,8 @@ static int OnTTBLoaded(WPARAM wParam, LPARAM lParam) int ModulesLoaded(WPARAM wParam, LPARAM lParam)
{
+ addIcons();
+
// Register menu item
CLISTMENUITEM mi = { sizeof(mi) };
mi.position = 1900000001;
@@ -200,6 +202,7 @@ int PreShutdown(WPARAM wParam, LPARAM lParam) INT_PTR ServiceMode(WPARAM wParam, LPARAM lParam)
{
+ addIcons();
bServiceMode = TRUE;
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DBSettingChanged);
@@ -217,9 +220,6 @@ extern "C" __declspec(dllexport) int Load(void) {
mir_getLP(&pluginInfoEx);
- // icons
- addIcons();
-
hwnd2mainWindow = hwnd2watchedVarsWindow = hwnd2importWindow = 0;
hRestore = NULL;
g_db = GetCurrentDatabase();
|