From 1a842b7e462e8df75ca48d06854427b6023ab42d Mon Sep 17 00:00:00 2001 From: lmdd <59944420+lmou523@users.noreply.github.com> Date: Thu, 8 Jun 2023 09:41:37 +0800 Subject: [PATCH] Call getclassname2 when there is a gui proxy Fixed a bug that was still used when there was no gui agent --- Sandboxie/core/dll/guiclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sandboxie/core/dll/guiclass.c b/Sandboxie/core/dll/guiclass.c index d904d81b..d568a1e4 100644 --- a/Sandboxie/core/dll/guiclass.c +++ b/Sandboxie/core/dll/guiclass.c @@ -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) {