Commit 4b5ca2ed authored by Alexander Dorofeyev's avatar Alexander Dorofeyev Committed by Alexandre Julliard

gdi32: Fix off by one error in BIDI_Reorder.

parent 8f49ea21
......@@ -1157,7 +1157,7 @@ BOOL BIDI_Reorder(
for (k = j - 1; k >= lastgood; --k)
lpOrder[done + k] = done + j - 1 - k;
else
for (k = lastgood; k <= j; ++k)
for (k = lastgood; k < j; ++k)
lpOrder[done + k] = done + k;
}
done += i;
......
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