wininet: Assign to structs instead of using memcpy.

oldstable
Andrew Talbot 2008-03-22 17:10:04 +00:00 committed by Alexandre Julliard
parent d3e904202a
commit 7b380e0aeb
1 changed files with 2 additions and 2 deletions

View File

@ -2979,7 +2979,7 @@ static DWORD CALLBACK INTERNET_WorkerThreadFunc(LPVOID lpvParam)
TRACE("\n");
memcpy(&workRequest, lpRequest, sizeof(WORKREQUEST));
workRequest = *lpRequest;
HeapFree(GetProcessHeap(), 0, lpRequest);
workRequest.asyncproc(&workRequest);
@ -3008,7 +3008,7 @@ BOOL INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest)
if (!lpNewRequest)
return FALSE;
memcpy(lpNewRequest, lpWorkRequest, sizeof(WORKREQUEST));
*lpNewRequest = *lpWorkRequest;
bSuccess = QueueUserWorkItem(INTERNET_WorkerThreadFunc, lpNewRequest, WT_EXECUTELONGFUNCTION);
if (!bSuccess)