Call getclassname2 when there is a gui proxy

Fixed a bug that was still used when there was no gui agent
This commit is contained in:
lmdd 2023-06-08 09:41:37 +08:00 committed by GitHub
parent 5a18da3637
commit 1a842b7e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1092,7 +1092,7 @@ _FX BOOLEAN Gui_IsWindowAccessible(HWND hWnd)
WCHAR clsnm[256];
ULONG have_clsnm = __sys_GetClassNameW(hWnd, clsnm, 255);
if (! have_clsnm)
if (! have_clsnm && Gui_UseProxyService)
have_clsnm = Gui_GetClassName2(hWnd, clsnm, 255, TRUE);
if (have_clsnm) {