wasn't fast enough to hit the cancel button

cast to VOID* instead of using CopyMemory

svn path=/trunk/; revision=32002
This commit is contained in:
Christoph von Wittich 2008-01-25 17:41:29 +00:00
parent 16361a1a3d
commit 5f0802d25b

View file

@ -111,15 +111,13 @@ static BOOL
CreateLargeCell(PMAP infoPtr) CreateLargeCell(PMAP infoPtr)
{ {
RECT rLarge; RECT rLarge;
POINT p;
CopyRect(&rLarge, CopyRect(&rLarge,
&infoPtr->pActiveCell->CellExt); &infoPtr->pActiveCell->CellExt);
CopyMemory(&p, &rLarge, sizeof(POINT));
MapWindowPoints(infoPtr->hMapWnd, MapWindowPoints(infoPtr->hMapWnd,
infoPtr->hParent, infoPtr->hParent,
&p, (VOID*)&rLarge,
2); 2);
InflateRect(&rLarge, InflateRect(&rLarge,
@ -149,15 +147,13 @@ static VOID
MoveLargeCell(PMAP infoPtr) MoveLargeCell(PMAP infoPtr)
{ {
RECT rLarge; RECT rLarge;
POINT p;
CopyRect(&rLarge, CopyRect(&rLarge,
&infoPtr->pActiveCell->CellExt); &infoPtr->pActiveCell->CellExt);
CopyMemory(&p, &rLarge, sizeof(POINT));
MapWindowPoints(infoPtr->hMapWnd, MapWindowPoints(infoPtr->hMapWnd,
infoPtr->hParent, infoPtr->hParent,
&p, (VOID*)&rLarge,
2); 2);
InflateRect(&rLarge, InflateRect(&rLarge,