wininet: Assign to structs instead of using memcpy.
This commit is contained in:
parent
d3e904202a
commit
7b380e0aeb
|
@ -2979,7 +2979,7 @@ static DWORD CALLBACK INTERNET_WorkerThreadFunc(LPVOID lpvParam)
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
|
||||||
memcpy(&workRequest, lpRequest, sizeof(WORKREQUEST));
|
workRequest = *lpRequest;
|
||||||
HeapFree(GetProcessHeap(), 0, lpRequest);
|
HeapFree(GetProcessHeap(), 0, lpRequest);
|
||||||
|
|
||||||
workRequest.asyncproc(&workRequest);
|
workRequest.asyncproc(&workRequest);
|
||||||
|
@ -3008,7 +3008,7 @@ BOOL INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest)
|
||||||
if (!lpNewRequest)
|
if (!lpNewRequest)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
memcpy(lpNewRequest, lpWorkRequest, sizeof(WORKREQUEST));
|
*lpNewRequest = *lpWorkRequest;
|
||||||
|
|
||||||
bSuccess = QueueUserWorkItem(INTERNET_WorkerThreadFunc, lpNewRequest, WT_EXECUTELONGFUNCTION);
|
bSuccess = QueueUserWorkItem(INTERNET_WorkerThreadFunc, lpNewRequest, WT_EXECUTELONGFUNCTION);
|
||||||
if (!bSuccess)
|
if (!bSuccess)
|
||||||
|
|
Loading…
Reference in New Issue