Author: gschneider
Date: Sun Aug 23 23:55:24 2009
New Revision: 42889
URL:
http://svn.reactos.org/svn/reactos?rev=42889&view=rev
Log:
- Fix two inverted pointer checks, found by Amine Khaldi
- Add, correct implemented comment
Modified:
trunk/reactos/dll/win32/gdi32/objects/eng.c
trunk/reactos/dll/win32/gdi32/objects/font.c
Modified: trunk/reactos/dll/win32/gdi32/objects/eng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/en…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/eng.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/eng.c [iso-8859-1] Sun Aug 23 23:55:24 2009
@@ -38,7 +38,11 @@
return retValue;
}
-FD_GLYPHSET* WINAPI
+/*
+ * @implemented
+ */
+FD_GLYPHSET*
+WINAPI
EngComputeGlyphSet(INT nCodePage,INT nFirstChar,INT cChars)
{
FD_GLYPHSET * ntfd_glyphset;
@@ -46,13 +50,12 @@
ntfd_glyphset = NtGdiEngComputeGlyphSet(nCodePage,nFirstChar,cChars);
- if (!ntfd_glyphset)
+ if (ntfd_glyphset)
{
if (ntfd_glyphset->cjThis)
{
myfd_glyphset = GlobalAlloc(0,ntfd_glyphset->cjThis);
-
- if (!myfd_glyphset)
+ if (myfd_glyphset)
{
if
(copy_my_glyphset(myfd_glyphset,ntfd_glyphset,ntfd_glyphset->cjThis) == FALSE)
{
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] Sun Aug 23 23:55:24 2009
@@ -1700,7 +1700,7 @@
*
*/
/*
- * @unimplemented
+ * @implemented
*/
BOOL
WINAPI