mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:01:43 +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:
parent
f561f03d31
commit
08632f7128
1 changed files with 2 additions and 4 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue