mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Handle a missing output buffer in NtGdiGetCharABCWidthsW
svn path=/trunk/; revision=42748
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user