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/DlgUpdate.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/DlgUpdate.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index a0909607df..ebef698ea5 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -22,6 +22,7 @@ Boston, MA 02111-1307, USA. #define UM_ERROR (WM_USER+1)
static bool bShowDetails;
+static HWND hwndDialog;
static void SelectAll(HWND hDlg, bool bEnable)
{
@@ -572,3 +573,9 @@ void DoCheck(int iFlag) hCheckThread = mir_forkthread(CheckUpdates, 0);
}
}
+
+void UninitCheck()
+{
+ if (hwndDialog != NULL)
+ DestroyWindow(hwndDialog);
+}
|