mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[GDI32]
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user