Check for error.

svn path=/trunk/; revision=43431
This commit is contained in:
Dmitry Gorbachev 2009-10-12 23:52:56 +00:00
parent bb99554339
commit dd487188b9

View file

@ -916,6 +916,10 @@ GetGlyphIndicesA(
INT countW;
lpstrW = FONT_mbtowc(hdc, lpstr, count, &countW, NULL);
if (lpstrW == NULL)
return GDI_ERROR;
Ret = NtGdiGetGlyphIndicesW(hdc, lpstrW, countW, pgi, flags);
HeapFree(GetProcessHeap(), 0, lpstrW);
return Ret;