reverted some test changes

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5179 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2012-12-11 09:53:39 +00:00
parent cb282fee0f
commit 03893cf330
+7 -1
View File
@@ -3975,11 +3975,17 @@ static BOOL CALLBACK EnumProcessWindowsProc(
)
{
ULONG processId;
HWND parentWindow;
if (!IsWindowVisible(hwnd))
return TRUE;
GetWindowThreadProcessId(hwnd, &processId);
if (
processId == (ULONG)lParam
processId == (ULONG)lParam &&
!((parentWindow = GetParent(hwnd)) && IsWindowVisible(parentWindow)) && // skip windows with a visible parent
GetWindowTextLength(hwnd) != 0
)
{
SelectedProcessWindowHandle = hwnd;