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:
parent
a282dc6fff
commit
d0f9c8af8a
|
@ -89,10 +89,10 @@ void uimsgloop(void)
|
||||||
if (focus != NULL) {
|
if (focus != NULL) {
|
||||||
if (GetClassNameW(focus, classchk, NCLASSNAME) == 0)
|
if (GetClassNameW(focus, classchk, NCLASSNAME) == 0)
|
||||||
xpanic("error getting name of focused window class for Area check", GetLastError());
|
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);
|
uimsgloop_area(active, focus, &msg);
|
||||||
continue;
|
continue;
|
||||||
} else if (wcscmp(classchk, WC_TABCONTROL) == 0) {
|
} else if (_wcsicmp(classchk, WC_TABCONTROL) == 0) {
|
||||||
uimsgloop_tab(active, focus, &msg);
|
uimsgloop_tab(active, focus, &msg);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue