GetTextExtentExPointW doesn't fail if nMaxExtent is negative (only ANSI version does)
Fixes gdi32:GetTextExtentExPoint apitest

svn path=/trunk/; revision=51111
This commit is contained in:
Rafal Harabien 2011-03-21 17:58:08 +00:00
parent f561f03d31
commit 08632f7128

View file

@ -194,11 +194,9 @@ GetTextExtentExPointW(
)
{
/* Windows doesn't check nMaxExtent validity in unicode version */
if(nMaxExtent < -1)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
DPRINT("nMaxExtent is invalid: %d\n", nMaxExtent);
return NtGdiGetTextExtentExW (
hdc, (LPWSTR)lpszStr, cchString, nMaxExtent, (PULONG)lpnFit, (PULONG)alpDx, lpSize, 0 );