mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +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
|
@ -385,7 +385,7 @@ GetCharacterPlacementA(
|
||||||
DWORD ret;
|
DWORD ret;
|
||||||
UINT font_cp;
|
UINT font_cp;
|
||||||
|
|
||||||
if ( !lpString || uCount <= 0 || (nMaxExtent < 0 && nMaxExtent != -1 ) )
|
if ( !lpString || uCount <= 0 || !lpResults || (nMaxExtent < 0 && nMaxExtent != -1 ) )
|
||||||
{
|
{
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue