[WIN32K] Apply some bits of Wine commit 88acc9c8 by Akihiro Sagawa: Don't modify...
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 30 May 2015 17:00:52 +0000 (17:00 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 30 May 2015 17:00:52 +0000 (17:00 +0000)
svn path=/trunk/; revision=67972

reactos/win32ss/gdi/ntgdi/freetype.c

index 9a69acc..882857b 100644 (file)
@@ -2027,11 +2027,11 @@ ftGdiGetGlyphOutline(
 
     IntUnLockFreeType;
 
-    if (pgm) RtlCopyMemory(pgm, &gm, sizeof(GLYPHMETRICS));
 
     if (iFormat == GGO_METRICS)
     {
         DPRINT("GGO_METRICS Exit!\n");
+        *pgm = gm;
         return 1; /* FIXME */
     }
 
@@ -2234,6 +2234,7 @@ ftGdiGetGlyphOutline(
     }
 
     DPRINT("ftGdiGetGlyphOutline END and needed %lu\n", needed);
+    *pgm = gm;
     return needed;
 }