Author: hbelusca
Date: Fri Jul 14 01:37:06 2017
New Revision: 75337
URL:
http://svn.reactos.org/svn/reactos?rev=75337&view=rev
Log:
[WIN32K]: Addendum to r75332 : fix variable usage without initialization error C4700
(certainly due to a copy-paste error), caught by MSVC compiler...
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] Fri Jul 14 01:37:06 2017
@@ -264,7 +264,7 @@
}
else
{
- /* concatnate ppdLast->pd.pptfx and pptfx */
+ /* concatenate ppdLast->pd.pptfx and pptfx */
size = (ppdLast->pd.count + cptfx) * sizeof(POINTFIX);
pptfxNew = ExAllocatePoolWithTag(PagedPool, size, GDITAG_PATHOBJ);
if (pptfxNew == NULL)
@@ -276,7 +276,7 @@
RtlCopyMemory(&pptfxNew[ppdLast->pd.count], pptfx, size);
pptfxOld = ppdLast->pd.pptfx;
- ppd->pd.pptfx = pptfxNew;
+ ppdLast->pd.pptfx = pptfxNew;
ExFreePoolWithTag(pptfxOld, GDITAG_PATHOBJ);
}
@@ -293,8 +293,8 @@
IN POINTFIX *pptfx,
IN ULONG cptfx)
{
+ PEXTPATHOBJ pPathObj;
PEXTPATHDATA ppd, ppdLast;
- PEXTPATHOBJ pPathObj;
PPOINTFIX pptfxNew, pptfxOld;
ULONG size;
@@ -360,7 +360,7 @@
}
else
{
- /* concatnate ppdLast->pd.pptfx and pptfx */
+ /* concatenate ppdLast->pd.pptfx and pptfx */
size = (ppdLast->pd.count + cptfx) * sizeof(POINTFIX);
pptfxNew = ExAllocatePoolWithTag(PagedPool, size, GDITAG_PATHOBJ);
if (pptfxNew == NULL)
@@ -372,7 +372,7 @@
RtlCopyMemory(&pptfxNew[ppdLast->pd.count], pptfx, size);
pptfxOld = ppdLast->pd.pptfx;
- ppd->pd.pptfx = pptfxNew;
+ ppdLast->pd.pptfx = pptfxNew;
ExFreePoolWithTag(pptfxOld, GDITAG_PATHOBJ);
}