diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-06 22:12:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-06 22:12:20 +0000 |
commit | 9de0202a0b12838d505825413c3cbcce5edabc11 (patch) | |
tree | 6f1f707f3e17c19e5cd08745e76c5299f9ba827b /plugins/HistoryLinkListPlus | |
parent | 4e3088029101cc1e9bbc46984910a47bc0530e8f (diff) |
cleanup of the unnecessary UnhookEvent() calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@3909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryLinkListPlus')
-rw-r--r-- | plugins/HistoryLinkListPlus/src/linklist.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/plugins/HistoryLinkListPlus/src/linklist.cpp b/plugins/HistoryLinkListPlus/src/linklist.cpp index 47b9ecc859..d3889376a5 100644 --- a/plugins/HistoryLinkListPlus/src/linklist.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist.cpp @@ -47,10 +47,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) extern "C" __declspec(dllexport) int Load(void)
{
- WNDCLASS wndclass;
-
-
mir_getLP(&pluginInfo);
+
// Load Rich Edit control
hRichEdit = LoadLibrary(_T("RICHED32.DLL"));
if (!hRichEdit)
@@ -81,16 +79,14 @@ extern "C" __declspec(dllexport) int Load(void) hWindowList = (HANDLE)CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0);
+ WNDCLASS wndclass = { 0 };
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = ProgressBarDlg;
- wndclass.cbClsExtra = 0;
- wndclass.cbWndExtra = 0;
wndclass.hInstance = hInst;
wndclass.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_LINKLISTICON));
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
wndclass.lpszClassName = _T("Progressbar");
- wndclass.lpszMenuName = NULL;
RegisterClass(&wndclass);
splitCursor = LoadCursor(NULL, IDC_SIZENS);
@@ -108,7 +104,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda extern "C" __declspec(dllexport) int Unload(void)
{
- UnhookEvent(ME_DB_EVENT_ADDED);
DestroyCursor(splitCursor);
return 0;
}
@@ -142,7 +137,6 @@ static INT_PTR LinkList_Main(WPARAM wParam,LPARAM lParam) int actCount = 0;
RECT DesktopRect;
- DIALOGPARAM *DlgParam;
LISTELEMENT *listStart;
UNREFERENCED_PARAMETER(lParam);
@@ -223,9 +217,7 @@ static INT_PTR LinkList_Main(WPARAM wParam,LPARAM lParam) return 0;
}
-
-
- DlgParam = (DIALOGPARAM*)malloc(sizeof(DIALOGPARAM));
+ DIALOGPARAM *DlgParam = (DIALOGPARAM*)malloc(sizeof(DIALOGPARAM));
DlgParam->hContact = hContact;
DlgParam->listStart = listStart;
DlgParam->findMessage = 0;
|