Commit c1f923fc authored by Oleg Korshul's avatar Oleg Korshul

error in convertation unicode => utf16

parent 5a75bc17
......@@ -504,8 +504,8 @@ namespace NSFile
code -= 0x10000;
code &= 0xFFFFF;
USHORT us1 = 0xD800 | ((code >> 5) & 0x1F);
USHORT us2 = 0xDC00 | (code & 0x1F);
USHORT us1 = 0xD800 | ((code >> 10) & 0x03FF);
USHORT us2 = 0xDC00 | (code & 0x03FF);
memcpy(pCodesCur, &us1, 2);
pCodesCur += 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment