- Fix two inverted pointer checks, found by Amine Khaldi
authorGregor Schneider <grschneider@gmail.com>
Sun, 23 Aug 2009 21:55:24 +0000 (21:55 +0000)
committerGregor Schneider <grschneider@gmail.com>
Sun, 23 Aug 2009 21:55:24 +0000 (21:55 +0000)
- Add, correct implemented comment

svn path=/trunk/; revision=42889

reactos/dll/win32/gdi32/objects/eng.c
reactos/dll/win32/gdi32/objects/font.c

index ce8a8c3..d29adf0 100644 (file)
@@ -38,7 +38,11 @@ copy_my_glyphset( FD_GLYPHSET *dst_glyphset , FD_GLYPHSET * src_glyphset, ULONG
     return retValue;
 }
 
-FD_GLYPHSET* WINAPI
+/*
+ * @implemented
+ */
+FD_GLYPHSET*
+WINAPI
 EngComputeGlyphSet(INT nCodePage,INT nFirstChar,INT cChars)
 {
     FD_GLYPHSET * ntfd_glyphset;
@@ -46,13 +50,12 @@ EngComputeGlyphSet(INT nCodePage,INT nFirstChar,INT cChars)
 
     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)
                 {
index 7cac4e0..7b56296 100644 (file)
@@ -1700,7 +1700,7 @@ GdiGetCharDimensions(HDC hdc, LPTEXTMETRICW lptm, LONG *height)
  *
  */
 /*
- * @unimplemented
+ * @implemented
  */
 BOOL
 WINAPI