From e87fe3a17f80b227e97c5527ba2440862298d08e Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 15 Nov 2005 18:12:42 +0000 Subject: [PATCH] Correct the size of a callback parameter. Fix the declaration of INTERNET_WorkerThreadFunc. --- dlls/wininet/internet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index f733ed6f260..f2a971f22eb 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -1017,7 +1017,7 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet) SendAsyncCallback(lpwh, lpwh->dwContext, INTERNET_STATUS_HANDLE_CLOSING, &hInternet, - sizeof(HINTERNET*)); + sizeof(HINTERNET)); if( lpwh->lpwhparent ) WININET_Release( lpwh->lpwhparent ); @@ -2912,7 +2912,7 @@ DWORD INTERNET_GetLastError(void) * RETURNS * */ -static DWORD INTERNET_WorkerThreadFunc(LPVOID *lpvParam) +static DWORD CALLBACK INTERNET_WorkerThreadFunc(LPVOID lpvParam) { DWORD dwWaitRes; @@ -3040,7 +3040,7 @@ BOOL INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest) if (InterlockedIncrement(&dwNumThreads) > MAX_WORKER_THREADS || !(hThread = CreateThread(NULL, 0, - (LPTHREAD_START_ROUTINE)INTERNET_WorkerThreadFunc, NULL, 0, &dwTID))) + INTERNET_WorkerThreadFunc, NULL, 0, &dwTID))) { InterlockedDecrement(&dwNumThreads); INTERNET_SetLastError(ERROR_INTERNET_ASYNC_THREAD_FAILED);