Changeset - r15407:387627af240b
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-07-03 15:15:19
frosch@openttd.org
(svn r20060) -Fix (r20055): strnicmp() does not exist on all platforms.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/hotkeys.cpp
Show inline comments
 
@@ -67,7 +67,7 @@ static uint16 ParseCode(const char *star
 
		return *start;
 
	}
 
	for (uint i = 0; i < lengthof(_keycode_to_name); i++) {
 
		if (strnicmp(start, _keycode_to_name[i].name, end - start) == 0) {
 
		if (strncasecmp(start, _keycode_to_name[i].name, end - start) == 0) {
 
			return _keycode_to_name[i].keycode;
 
		}
 
	}
0 comments (0 inline, 0 general)