From d0f9c8af8acc56927b6cc7d3130a42c828b6bddb Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 28 Aug 2014 11:45:47 -0400 Subject: [PATCH] Switched from wcscmp() to _wcsicmp() in class names on Windows; class names on Windows are case insensitive - http://stackoverflow.com/questions/7928592/are-windows-window-classes-case-sensitive. --- redo/uitask_windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redo/uitask_windows.c b/redo/uitask_windows.c index e7f9b5e..dec6ed2 100644 --- a/redo/uitask_windows.c +++ b/redo/uitask_windows.c @@ -89,10 +89,10 @@ void uimsgloop(void) if (focus != NULL) { if (GetClassNameW(focus, classchk, NCLASSNAME) == 0) xpanic("error getting name of focused window class for Area check", GetLastError()); - if (wcscmp(classchk, areaWindowClass) == 0) { + if (_wcsicmp(classchk, areaWindowClass) == 0) { uimsgloop_area(active, focus, &msg); continue; - } else if (wcscmp(classchk, WC_TABCONTROL) == 0) { + } else if (_wcsicmp(classchk, WC_TABCONTROL) == 0) { uimsgloop_tab(active, focus, &msg); continue; }