From a4e8b93653ccc696dcac46b3781c971deddf709c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 4 Feb 2019 18:05:41 -0800 Subject: [PATCH] win-capture: Add a few more blacklisted capture exes --- plugins/win-capture/window-helpers.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/win-capture/window-helpers.c b/plugins/win-capture/window-helpers.c index 6ee2d5010..73a13e2a0 100644 --- a/plugins/win-capture/window-helpers.c +++ b/plugins/win-capture/window-helpers.c @@ -132,23 +132,20 @@ void get_window_class(struct dstr *class, HWND hwnd) static const char *internal_microsoft_exes[] = { "applicationframehost", "shellexperiencehost", + "windowsinternal", "winstore.app", "searchui", + "lockapp", NULL }; static bool is_microsoft_internal_window_exe(const char *exe) { - char cur_exe[MAX_PATH]; - if (!exe) return false; for (const char **vals = internal_microsoft_exes; *vals; vals++) { - strcpy(cur_exe, *vals); - strcat(cur_exe, ".exe"); - - if (strcmpi(cur_exe, exe) == 0) + if (astrcmpi_n(exe, *vals, strlen(*vals)) == 0) return true; }