mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
- GetGlyphOutline: fail if output or transformation matrix buffers are not passed
- Fixes three gdi32 font winetests svn path=/trunk/; revision=42780
This commit is contained in:
parent
ea488d3a60
commit
e5d8f301db
1 changed files with 2 additions and 1 deletions
|
@ -929,6 +929,7 @@ GetGlyphOutlineA(
|
|||
DWORD ret;
|
||||
UINT c;
|
||||
DPRINT("GetGlyphOutlineA uChar %x\n", uChar);
|
||||
if (!lpgm || !lpmat2) return GDI_ERROR;
|
||||
if(!(uFormat & GGO_GLYPH_INDEX)) {
|
||||
int len;
|
||||
char mbchs[2];
|
||||
|
@ -966,7 +967,7 @@ GetGlyphOutlineW(
|
|||
)
|
||||
{
|
||||
DPRINT("GetGlyphOutlineW uChar %x\n", uChar);
|
||||
if (!lpgm & !lpmat2) return GDI_ERROR;
|
||||
if (!lpgm || !lpmat2) return GDI_ERROR;
|
||||
if (!lpvBuffer) cbBuffer = 0;
|
||||
return NtGdiGetGlyphOutline ( hdc, uChar, uFormat, lpgm, cbBuffer, lpvBuffer, (CONST LPMAT2)lpmat2, TRUE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue