Author: rharabien
Date: Mon Mar 21 17:58:08 2011
New Revision: 51111
URL:
http://svn.reactos.org/svn/reactos?rev=51111&view=rev
Log:
[GDI32]
GetTextExtentExPointW doesn't fail if nMaxExtent is negative (only ANSI version does)
Fixes gdi32:GetTextExtentExPoint apitest
Modified:
trunk/reactos/dll/win32/gdi32/objects/text.c
Modified: trunk/reactos/dll/win32/gdi32/objects/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/te…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] Mon Mar 21 17:58:08 2011
@@ -194,11 +194,9 @@
)
{
+ /* 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 );