wintab32: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-22 17:10:10 +00:00 committed by Alexandre Julliard
parent a1732549ca
commit 480cd234a8
1 changed files with 2 additions and 3 deletions

View File

@ -214,8 +214,7 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd)
else
{
TRACE("Placed in queue %p index %i\n",ptr->handle,tgt);
memcpy(&ptr->PacketQueue[tgt], packet, sizeof
(WTPACKET));
ptr->PacketQueue[tgt] = *packet;
ptr->PacketsQueued++;
if (ptr->ActiveCursor != packet->pkCursor)
@ -440,7 +439,7 @@ HCTX WINAPI WTOpenW(HWND hWnd, LPLOGCONTEXTW lpLogCtx, BOOL fEnable)
DUMPCONTEXT(*lpLogCtx);
newcontext = HeapAlloc(GetProcessHeap(), 0 , sizeof(OPENCONTEXT));
memcpy(&(newcontext->context),lpLogCtx,sizeof(LOGCONTEXTW));
newcontext->context = *lpLogCtx;
newcontext->hwndOwner = hWnd;
newcontext->enabled = fEnable;
newcontext->ActiveCursor = -1;