diff options
author | George Hazan <george.hazan@gmail.com> | 2014-05-10 08:28:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-05-10 08:28:12 +0000 |
commit | 2d5679d79f16628fdc2f4b9f420817b6c3c1c6b1 (patch) | |
tree | 3430c100a142e5e5de6b478737004dca58ec1ef6 /plugins/PluginUpdater/src/DlgListNew.cpp | |
parent | c197e5206839d1fb1378d52d76df5681a80bd1eb (diff) |
fix for sharing the same global variable between two modules
git-svn-id: http://svn.miranda-ng.org/main/trunk@9154 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/DlgListNew.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgListNew.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp index 1f3696c392..eded09dc1e 100644 --- a/plugins/PluginUpdater/src/DlgListNew.cpp +++ b/plugins/PluginUpdater/src/DlgListNew.cpp @@ -19,6 +19,8 @@ Boston, MA 02111-1307, USA. #include "common.h"
+static HWND hwndDialog;
+
static void SelectAll(HWND hDlg, bool bEnable)
{
OBJLIST<FILEINFO> &todo = *(OBJLIST<FILEINFO> *)GetWindowLongPtr(hDlg, GWLP_USERDATA);
@@ -458,3 +460,9 @@ void DoGetList(int iFlag) else if (iFlag)
hListThread = mir_forkthread(GetList, 0);
}
+
+void UninitListNew()
+{
+ if (hwndDialog != NULL)
+ DestroyWindow(hwndDialog);
+}
|