summaryrefslogtreecommitdiff
path: root/emulators/peace/patches/patch-ac
blob: 1fc6efdfa6e0349780ae5a6ec46779ee626e0b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-ac,v 1.1 2005/06/09 07:01:59 kent Exp $

--- dll/ui.so/string.cc.~1.9.~	2003-12-01 01:11:04.000000000 +0900
+++ dll/ui.so/string.cc
@@ -43,7 +43,7 @@ CharLowerA(LPSTR str)
 		/*
 		 * 1 character.
 		 */
-		return (LPSTR)tolower(str);
+		return (LPSTR)tolower(LOWORD(str));
 	} else {
 		CharLowerBuffA(str, strlen(str));
 	}
@@ -60,7 +60,7 @@ CharLowerW(LPWSTR str)
 		/*
 		 * 1 character.
 		 */
-		return (LPWSTR)tolower(str);
+		return (LPWSTR)tolower(LOWORD(str));
 	} else {
 		CharLowerBuffW(str, lstrlenW(str));
 	}
@@ -223,7 +223,7 @@ CharUpperA(LPSTR str)
 		/*
 		 * 1 character.
 		 */
-		return (LPSTR)toupper(str);
+		return (LPSTR)toupper(LOWORD(str));
 	} else {
 		CharUpperBuffA(str, strlen(str));
 	}
@@ -240,7 +240,7 @@ CharUpperW(LPWSTR str)
 		/*
 		 * 1 character.
 		 */
-		return (LPWSTR)toupper(str);
+		return (LPWSTR)toupper(LOWORD(str));
 	} else {
 		CharUpperBuffW(str, lstrlenW(str));
 	}