In NtGdiGetTextExtentExW fail when Count is negative.

svn path=/trunk/; revision=56384
This commit is contained in:
Timo Kreuzer 2012-04-21 16:05:24 +00:00
parent 9dbd062a44
commit fd2013dc9e

View file

@ -278,6 +278,12 @@ NtGdiGetTextExtentExW(
LPINT Dx;
PTEXTOBJ TextObj;
if ((LONG)Count < 0)
{
EngSetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
/* FIXME: Handle fl */
if (0 == Count)