summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic/src/alogon.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-11-18 18:53:15 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-11-18 18:53:15 +0000
commita01e122eb5f84cf7fb2b704ae91556e6f6e4f6ef (patch)
tree43f80b6df32c32b8b4a85b3d6223a9bcad90d023 /protocols/SkypeClassic/src/alogon.cpp
parent4491b4f5a8964a02784744de83902e1ca93013f7 (diff)
SkypeClassic
-Minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11014 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic/src/alogon.cpp')
-rw-r--r--protocols/SkypeClassic/src/alogon.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/SkypeClassic/src/alogon.cpp b/protocols/SkypeClassic/src/alogon.cpp
index 8002d495fc..6fc21d2cce 100644
--- a/protocols/SkypeClassic/src/alogon.cpp
+++ b/protocols/SkypeClassic/src/alogon.cpp
@@ -36,15 +36,12 @@ static HWND findWindow(HWND parent, const TCHAR* childClassName)
return wnd;
}
-static BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
+static BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
{
DWORD dwPID;
- const TCHAR *lpszClassName;
-
-
GetWindowThreadProcessId(hWnd,&dwPID);
if (lParam != 0 && dwPID != (DWORD)lParam) return TRUE;
- lpszClassName = getClassName(hWnd);
+ const TCHAR *lpszClassName = getClassName(hWnd);
if(_tcscmp(lpszClassName, _T("tSkMainForm.UnicodeClass")) == 0 ||
_tcscmp(lpszClassName, _T("TLoginForm.UnicodeClass")) == 0)
{
@@ -106,7 +103,7 @@ DWORD WINAPI setUserNamePasswordThread(LPVOID lpDummy)
return 0;
WaitForSingleObject(SkypeReady, 5000);
- EnumWindows (EnumWindowsProc, dwPid);
+ EnumWindows(EnumWindowsProc, dwPid);
ReleaseMutex(mutex);
CloseHandle(mutex);