projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3db1c05
)
- Fix converting of UTF8 sequences in IntMultiByteToWideCharUTF8.
author
Filip Navara
<filip.navara@gmail.com>
Tue, 31 Aug 2004 19:54:14 +0000
(19:54 +0000)
committer
Filip Navara
<filip.navara@gmail.com>
Tue, 31 Aug 2004 19:54:14 +0000
(19:54 +0000)
svn path=/trunk/; revision=10755
reactos/lib/kernel32/misc/nls.c
patch
|
blob
|
history
diff --git
a/reactos/lib/kernel32/misc/nls.c
b/reactos/lib/kernel32/misc/nls.c
index
2153bcb
..
81b06eb
100755
(executable)
--- a/
reactos/lib/kernel32/misc/nls.c
+++ b/
reactos/lib/kernel32/misc/nls.c
@@
-344,9
+344,12
@@
IntMultiByteToWideCharUTF8(DWORD Flags,
continue;
}
Length = UTF8Length[Char - 0x80];
- WideChar = UTF8Mask[Length];
+ WideChar =
Char &
UTF8Mask[Length];
while (Length && MultiByteString < MbsEnd)
+ {
WideChar = (WideChar << 6) | *MultiByteString++;
+ Length--;
+ }
*WideCharString++ = WideChar;
}