Skip to content

Whatever for does, it returns 1 #2

Open
@aeagean

Description

@aeagean

for (i = v5; ; i = v16)

source code

Finally, 1 will be returned

for (i = v5; ; i = v16)
{
  v15 = GetWindow(i, 4u);
  v16 = v15;
  if (!v15)
	  break;
  
  v14 = GetWindowLongPtrW(v15, -20);
  if ((v14 & 0x40000i64) == 0 && ((v14 & 0x80u) != 0 || (v14 & 0x8000000) != 0))
	  break;
  
  if (!IsWindowVisible(v16) || _sws_GhostWindowFromHungWindow(v16))
	  break;
  
  v5 = v16;
}

return 1; // is BUG?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions