Merge branch 'master' into UI

This commit is contained in:
WarmUpTill
2020-10-22 20:02:13 +02:00

View File

@@ -23,8 +23,7 @@ static bool GetWindowTitle(HWND window, string &title)
static bool WindowValid(HWND window)
{
LONG_PTR styles, ex_styles;
RECT rect;
LONG_PTR styles;
DWORD id;
if (!IsWindowVisible(window))
@@ -33,7 +32,6 @@ static bool WindowValid(HWND window)
if (id == GetCurrentProcessId())
return false;
GetClientRect(window, &rect);
styles = GetWindowLongPtr(window, GWL_STYLE);
if (styles & WS_CHILD)