Commit e87fe3a1 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Correct the size of a callback parameter.

Fix the declaration of INTERNET_WorkerThreadFunc.
parent 26a6d598
...@@ -1017,7 +1017,7 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet) ...@@ -1017,7 +1017,7 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet)
SendAsyncCallback(lpwh, lpwh->dwContext, SendAsyncCallback(lpwh, lpwh->dwContext,
INTERNET_STATUS_HANDLE_CLOSING, &hInternet, INTERNET_STATUS_HANDLE_CLOSING, &hInternet,
sizeof(HINTERNET*)); sizeof(HINTERNET));
if( lpwh->lpwhparent ) if( lpwh->lpwhparent )
WININET_Release( lpwh->lpwhparent ); WININET_Release( lpwh->lpwhparent );
...@@ -2912,7 +2912,7 @@ DWORD INTERNET_GetLastError(void) ...@@ -2912,7 +2912,7 @@ DWORD INTERNET_GetLastError(void)
* RETURNS * RETURNS
* *
*/ */
static DWORD INTERNET_WorkerThreadFunc(LPVOID *lpvParam) static DWORD CALLBACK INTERNET_WorkerThreadFunc(LPVOID lpvParam)
{ {
DWORD dwWaitRes; DWORD dwWaitRes;
...@@ -3040,7 +3040,7 @@ BOOL INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest) ...@@ -3040,7 +3040,7 @@ BOOL INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest)
if (InterlockedIncrement(&dwNumThreads) > MAX_WORKER_THREADS || if (InterlockedIncrement(&dwNumThreads) > MAX_WORKER_THREADS ||
!(hThread = CreateThread(NULL, 0, !(hThread = CreateThread(NULL, 0,
(LPTHREAD_START_ROUTINE)INTERNET_WorkerThreadFunc, NULL, 0, &dwTID))) INTERNET_WorkerThreadFunc, NULL, 0, &dwTID)))
{ {
InterlockedDecrement(&dwNumThreads); InterlockedDecrement(&dwNumThreads);
INTERNET_SetLastError(ERROR_INTERNET_ASYNC_THREAD_FAILED); INTERNET_SetLastError(ERROR_INTERNET_ASYNC_THREAD_FAILED);
......
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