From 3cbe1ae789270b1bb873d205fc6f8252d23df86a Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 9 Jun 2017 11:14:11 +0000 Subject: [PATCH] [GDI32] - Check for lpResults == NULL in GetCharacterPlacementA. Patch by Doug Lyons. Fixes crash in gdi32_winetest:font CORE-13401 #resolve svn path=/trunk/; revision=74973 --- reactos/win32ss/gdi/gdi32/objects/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/gdi/gdi32/objects/font.c b/reactos/win32ss/gdi/gdi32/objects/font.c index 6a9a90698cf..56998ab84bc 100644 --- a/reactos/win32ss/gdi/gdi32/objects/font.c +++ b/reactos/win32ss/gdi/gdi32/objects/font.c @@ -385,7 +385,7 @@ GetCharacterPlacementA( 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;