Author: jimtabor
Date: Sat Jul 15 03:58:42 2017
New Revision: 75347
URL:
http://svn.reactos.org/svn/reactos?rev=75347&view=rev
Log:
[ENG]
- Patch by Katayama Hirofumi MZ : Add counts to path data. See CORE-13536.
Modified:
trunk/reactos/win32ss/gdi/eng/pathobj.c
Modified: trunk/reactos/win32ss/gdi/eng/pathobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/pathobj.c?…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/pathobj.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/pathobj.c [iso-8859-1] Sat Jul 15 03:58:42 2017
@@ -217,7 +217,6 @@
/* store data */
RtlZeroMemory(ppd, sizeof(EXTPATHDATA));
ppd->pd.flags = PD_BEGINSUBPATH;
- ppd->pd.count = cptfx;
size = cptfx * sizeof(POINTFIX);
pptfxNew = ExAllocatePoolWithTag(PagedPool, size, GDITAG_PATHOBJ);
@@ -228,6 +227,7 @@
}
RtlCopyMemory(pptfxNew, pptfx, size);
ppd->pd.pptfx = pptfxNew;
+ ppd->pd.count = cptfx;
/* set the subpath */
pPathObj->ppdLast = pPathObj->ppdFirst = ppd;
@@ -277,6 +277,7 @@
pptfxOld = ppdLast->pd.pptfx;
ppdLast->pd.pptfx = pptfxNew;
+ ppdLast->pd.count += cptfx;
ExFreePoolWithTag(pptfxOld, GDITAG_PATHOBJ);
}
@@ -313,7 +314,6 @@
/* store data */
RtlZeroMemory(ppd, sizeof(EXTPATHDATA));
ppd->pd.flags = PD_BEGINSUBPATH | PD_BEZIERS;
- ppd->pd.count = cptfx;
size = cptfx * sizeof(POINTFIX);
pptfxNew = ExAllocatePoolWithTag(PagedPool, size, GDITAG_PATHOBJ);
@@ -324,6 +324,7 @@
}
RtlCopyMemory(pptfxNew, pptfx, size);
ppd->pd.pptfx = pptfxNew;
+ ppd->pd.count = cptfx;
/* set the subpath */
pPathObj->ppdLast = pPathObj->ppdFirst = ppd;
@@ -373,6 +374,7 @@
pptfxOld = ppdLast->pd.pptfx;
ppdLast->pd.pptfx = pptfxNew;
+ ppdLast->pd.count += cptfx;
ExFreePoolWithTag(pptfxOld, GDITAG_PATHOBJ);
}