summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-03-23 16:48:36 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-03-23 16:48:36 +0000
commit0c55481e15c493e3462ea74297e320997ec1de32 (patch)
tree7d0094c358cdf8530c6d81b80a7cfe59eab247a7 /plugins
parent773aed6339b88a5485287c862d5dfdd66bf2c0e8 (diff)
HTTPServer:
-Fixed "Copy Link" -Close Statistics window on Exit -Minor x64 fix git-svn-id: http://svn.miranda-ng.org/main/trunk@12484 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/HTTPServer/src/GuiElements.cpp4
-rw-r--r--plugins/HTTPServer/src/main.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/HTTPServer/src/GuiElements.cpp b/plugins/HTTPServer/src/GuiElements.cpp
index 5019c165c3..c06e583bea 100644
--- a/plugins/HTTPServer/src/GuiElements.cpp
+++ b/plugins/HTTPServer/src/GuiElements.cpp
@@ -865,7 +865,7 @@ static INT_PTR CALLBACK DlgProcStatsticView(HWND hwndDlg, UINT msg, WPARAM wPara
}
case ID_SHARELIST_NEWSHARE: {
- CallService(MS_SHARE_NEW_FILE, 0, (long)hwndDlg);
+ CallService(MS_SHARE_NEW_FILE, 0, (LPARAM)hwndDlg);
return TRUE;
}
@@ -925,7 +925,7 @@ static INT_PTR CALLBACK DlgProcStatsticView(HWND hwndDlg, UINT msg, WPARAM wPara
// Place the handle on the clipboard.
- HANDLE hMyData = SetClipboardData(CF_UNICODETEXT, hglbCopy);
+ HANDLE hMyData = SetClipboardData(CF_TEXT, hglbCopy);
if (! hMyData)
MessageBox(hwndDlg, TranslateT("Failed to set clipboard data"), MSG_BOX_TITEL, MB_OK);
diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp
index 5c289bbb75..89b61986c6 100644
--- a/plugins/HTTPServer/src/main.cpp
+++ b/plugins/HTTPServer/src/main.cpp
@@ -84,6 +84,8 @@ bool bShutdownInProgress = false;
int hLangpack = 0;
+extern HWND hwndStatsticView;
+
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
__PLUGIN_NAME,
@@ -959,5 +961,7 @@ int nSystemShutdown(WPARAM /*wparam*/, LPARAM /*lparam*/) {
extern "C" __declspec(dllexport) int Unload() {
nSystemShutdown(0, 0);
+ if(hwndStatsticView)
+ DestroyWindow(hwndStatsticView);
return 0;
} \ No newline at end of file