Author: tfaber
Date: Fri Jun 9 11:14:11 2017
New Revision: 74973
URL:
http://svn.reactos.org/svn/reactos?rev=74973&view=rev
Log:
[GDI32]
- Check for lpResults == NULL in GetCharacterPlacementA. Patch by Doug Lyons. Fixes crash
in gdi32_winetest:font
CORE-13401 #resolve
Modified:
trunk/reactos/win32ss/gdi/gdi32/objects/font.c
Modified: trunk/reactos/win32ss/gdi/gdi32/objects/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/gdi32/objects/…
==============================================================================
--- trunk/reactos/win32ss/gdi/gdi32/objects/font.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/gdi32/objects/font.c [iso-8859-1] Fri Jun 9 11:14:11 2017
@@ -385,7 +385,7 @@
DWORD ret;
UINT font_cp;
- if ( !lpString || uCount <= 0 || (nMaxExtent < 0 && nMaxExtent != -1 )
)
+ if ( !lpString || uCount <= 0 || !lpResults || (nMaxExtent < 0 &&
nMaxExtent != -1 ) )
{
SetLastError(ERROR_INVALID_PARAMETER);
return 0;