Handle a missing output buffer in NtGdiGetCharABCWidthsW

svn path=/trunk/; revision=42748
This commit is contained in:
Gregor Schneider 2009-08-17 00:13:44 +00:00
parent 39980608f8
commit a7c654b075

View file

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