Author: jimtabor
Date: Sun Dec 7 21:34:22 2008
New Revision: 37922
URL:
http://svn.reactos.org/svn/reactos?rev=37922&view=rev
Log:
- Patch by hto: Suspicious code in User32.dll, see bug 3935.
Modified:
trunk/reactos/dll/win32/user32/windows/font.c
Modified: trunk/reactos/dll/win32/user32/windows/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/f…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/font.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/font.c [iso-8859-1] Sun Dec 7 21:34:22 2008
@@ -676,9 +676,10 @@
assert (max >= n);
max -= n;
while (n--)
+ {
if (*start_str++ == PREFIX && max--)
start_str++;
- else;
+ }
start_count -= (start_str - str_on_entry);
}
else
@@ -736,7 +737,6 @@
str++;
ns--;
}
- else;
i++;
}
return result;