mirror of
https://github.com/reactos/wine.git
synced 2025-02-11 23:27:25 +00:00
gdi32: Fix runaway loop because of unsigned comparison in BIDI_Reorder.
This commit is contained in:
parent
74cd5903e2
commit
cdca301821
@ -1087,7 +1087,7 @@ BOOL BIDI_Reorder(
|
||||
i = done = 0;
|
||||
while (done < uCount)
|
||||
{
|
||||
unsigned j, lastgood;
|
||||
unsigned j;
|
||||
classify(lpOutString + done, chartype, uCount - done);
|
||||
/* limit text to first block */
|
||||
i = resolveParagraphs(chartype, uCount - done);
|
||||
@ -1140,7 +1140,7 @@ BOOL BIDI_Reorder(
|
||||
|
||||
if (lpOrder)
|
||||
{
|
||||
unsigned k;
|
||||
int k, lastgood;
|
||||
for (j = lastgood = 0; j < i; ++j)
|
||||
if (levels[j] != levels[lastgood])
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user