From a01e122eb5f84cf7fb2b704ae91556e6f6e4f6ef Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 18 Nov 2014 18:53:15 +0000 Subject: SkypeClassic -Minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11014 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeClassic/src/alogon.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'protocols/SkypeClassic/src/alogon.cpp') 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); -- cgit v1.2.3