diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-14 18:09:00 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-14 18:09:00 +0000 |
commit | 1e1d41d656d3f2c8218e311a59e4de24635dedb3 (patch) | |
tree | 547f07068a66879e6a39f8b4ffe8901a432de02c | |
parent | c94458194ff28b9e2f7a5d872638aeb7d457e517 (diff) |
fixed crash on preview
git-svn-id: http://svn.miranda-ng.org/main/trunk@4031 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/WhoUsesMyFiles/src/wumfplug.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/plugins/WhoUsesMyFiles/src/wumfplug.cpp b/plugins/WhoUsesMyFiles/src/wumfplug.cpp index 7c206e9489..ea9e3d5706 100644 --- a/plugins/WhoUsesMyFiles/src/wumfplug.cpp +++ b/plugins/WhoUsesMyFiles/src/wumfplug.cpp @@ -139,16 +139,9 @@ void ShowWumfPopUp(PWumf w) }
void ShowThePopUp(PWumf w, LPTSTR title, LPTSTR text)
{
- POPUPDATAT ppd = { 0 };
- COLORREF colorBack;
- COLORREF colorText;
-
- colorBack = GetSysColor(COLOR_BTNFACE);
- colorText = RGB(0,0,0);
-
+ POPUPDATAT ppd = {0};
ppd.lchContact = NULL;
- ppd.lchIcon = LoadIcon(hInst,MAKEINTRESOURCE(IDI_DRIVE));
- ppd.iSeconds = -1;
+ ppd.lchIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_DRIVE));
if(WumfOptions.DelayInf)
{
@@ -172,8 +165,7 @@ void ShowThePopUp(PWumf w, LPTSTR title, LPTSTR text) }
else if(WumfOptions.UseDefColor)
{
- ppd.colorBack = 0L;
- ppd.colorText = 0L;
+ ppd.colorBack = ppd.colorText = 0;
}
else if(WumfOptions.SelectColor)
{
@@ -183,8 +175,7 @@ void ShowThePopUp(PWumf w, LPTSTR title, LPTSTR text) ppd.PluginWindowProc = (WNDPROC)PopupDlgProc;
ppd.PluginData = w;
- if(CALLSERVICE_NOTFOUND == CallService(MS_POPUP_ADDPOPUPEX, (WPARAM)&ppd, 0))
- CallService(MS_POPUP_ADDPOPUP, (WPARAM)&ppd, 0);
+ PUAddPopUpT(&ppd);
}
void ShowThePreview()
|