summaryrefslogtreecommitdiff
path: root/plugins/BossKeyPlus
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-04 20:00:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-04 20:00:15 +0000
commita90a30ec3de18405777a992c37dc6dd476465cd8 (patch)
treea6777cebe105fec742d171af6771955431aed894 /plugins/BossKeyPlus
parenta1e783a12be8a16b780a78f74e0f399bed657d4c (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2194 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BossKeyPlus')
-rw-r--r--plugins/BossKeyPlus/src/BossKey.cpp13
1 files changed, 2 insertions, 11 deletions
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;