From a90a30ec3de18405777a992c37dc6dd476465cd8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 4 Nov 2012 20:00:15 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2194 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BossKeyPlus/src/BossKey.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'plugins/BossKeyPlus') diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index 551ec82a96..ac6b4c457c 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -751,14 +751,7 @@ int MirandaLoaded(WPARAM wParam,LPARAM lParam) HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed); pcli = (CLIST_INTERFACE *)CallService(MS_CLIST_RETRIEVE_INTERFACE, 0, (LPARAM)g_hInstance); -#if defined _DEBUG - if (pcli == 0) - { - MessageBox(NULL,_T("Can't get CLIST_INTERFACE!"),_T("BossKey+"),MB_ICONERROR); - return 1; - }else -#endif - GetWindowThreadProcessId(pcli->hwndContactList,&g_dwMirandaPID); + GetWindowThreadProcessId(pcli->hwndContactList, &g_dwMirandaPID); // let's create our secret window // this is a cheap, cheap hack... @@ -766,12 +759,10 @@ int MirandaLoaded(WPARAM wParam,LPARAM lParam) // if the calls aren't made from this context, they won't work // using the window is a workaround to make this process do its work :) // see notes - WNDCLASS winclass = {0}; + WNDCLASS winclass = {0}; winclass.lpfnWndProc = ListenWndProc; winclass.hInstance = g_hInstance; - //winclass.hIcon = LoadIcon(NULL,IDI_APPLICATION); - //winclass.hCursor = LoadCursor(NULL,IDC_ARROW); winclass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); winclass.lpszClassName = BOSSKEY_LISTEN_INFO; -- cgit v1.2.3