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.

This commit is contained in:
Pietro Gagliardi 2014-08-28 11:45:47 -04:00
parent a282dc6fff
commit d0f9c8af8a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}