mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:13:00 +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)
|
if(nMaxExtent < -1)
|
||||||
{
|
DPRINT("nMaxExtent is invalid: %d\n", nMaxExtent);
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NtGdiGetTextExtentExW (
|
return NtGdiGetTextExtentExW (
|
||||||
hdc, (LPWSTR)lpszStr, cchString, nMaxExtent, (PULONG)lpnFit, (PULONG)alpDx, lpSize, 0 );
|
hdc, (LPWSTR)lpszStr, cchString, nMaxExtent, (PULONG)lpnFit, (PULONG)alpDx, lpSize, 0 );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue