mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[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
This commit is contained in:
parent
19dd22d422
commit
3cbe1ae789
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue