[ros-diffs] [rharabien] 51111: [GDI32] GetTextExtentExPointW doesn't fail if nMaxExtent is negative (only ANSI version does) Fixes gdi32:GetTextExtentExPoint apitest

rharabien at svn.reactos.org rharabien at svn.reactos.org
Mon Mar 21 17:58:08 UTC 2011


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/text.c?rev=51111&r1=51110&r2=51111&view=diff
==============================================================================
--- 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 );




More information about the Ros-diffs mailing list