Author: dgorbachev
Date: Tue Oct 13 01:52:56 2009
New Revision: 43431
URL:
http://svn.reactos.org/svn/reactos?rev=43431&view=rev
Log:
Check for error.
Modified:
trunk/reactos/dll/win32/gdi32/objects/font.c
Modified: trunk/reactos/dll/win32/gdi32/objects/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/fo…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/font.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/font.c [iso-8859-1] Tue Oct 13 01:52:56 2009
@@ -916,6 +916,10 @@
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;