Commit 7b380e0a authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

wininet: Assign to structs instead of using memcpy.

parent d3e90420
...@@ -2979,7 +2979,7 @@ static DWORD CALLBACK INTERNET_WorkerThreadFunc(LPVOID lpvParam) ...@@ -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) ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment