From 1e1d41d656d3f2c8218e311a59e4de24635dedb3 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 14 Mar 2013 18:09:00 +0000 Subject: fixed crash on preview git-svn-id: http://svn.miranda-ng.org/main/trunk@4031 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WhoUsesMyFiles/src/wumfplug.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'plugins/WhoUsesMyFiles/src') 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() -- cgit v1.2.3