Skip to content

Commit 704ac6a

Browse files
committed
似乎能够计算正确
1 parent af14684 commit 704ac6a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • Workbench/Wmf/KawkaywecaljalKayjaybelfuber

Workbench/Wmf/KawkaywecaljalKayjaybelfuber/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ Encoding CharacterSetToEncoding(CharacterSet characterSet)
244244
}
245245
else
246246
{
247+
if (dxLength % sizeof(UInt16) == 1)
248+
{
249+
var r = binaryReader.ReadByte();
250+
_ = r;
251+
}
252+
247253
var currentXOffset = currentX + tx;
248254
UInt16[] dxArray = new UInt16[dxLength / sizeof(UInt16)];
249255
for (var t = 0; t < dxArray.Length; t++)

0 commit comments

Comments
 (0)