mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:46:29 +00:00
Handle a missing output buffer in NtGdiGetCharABCWidthsW
svn path=/trunk/; revision=42748
This commit is contained in:
parent
39980608f8
commit
a7c654b075
1 changed files with 6 additions and 0 deletions
|
@ -3761,6 +3761,12 @@ NtGdiGetCharABCWidthsW(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (!Buffer)
|
||||
{
|
||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BufferSize = Count * sizeof(ABC); // Same size!
|
||||
SafeBuff = ExAllocatePoolWithTag(PagedPool, BufferSize, TAG_GDITEXT);
|
||||
if (!fl) SafeBuffF = (LPABCFLOAT) SafeBuff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue