- Check for lpResults == NULL in GetCharacterPlacementA. Patch by Doug Lyons. Fixes crash in gdi32_winetest:font
CORE-13401 #resolve

svn path=/trunk/; revision=74973
This commit is contained in:
Thomas Faber 2017-06-09 11:14:11 +00:00
parent 19dd22d422
commit 3cbe1ae789

View file

@ -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;