INTERNET_STATUS_HANDLE_CREATED notifications just send the handle, not

an INTERNET_ASYNC_RESULT structure.
The source handle in HTTP_Connect should be the parent's handle.
This commit is contained in:
Robert Shearman 2005-11-15 12:01:59 +00:00 committed by Alexandre Julliard
parent 5b1fd2e58e
commit 79dc136a37
1 changed files with 5 additions and 14 deletions

View File

@ -669,7 +669,6 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
HINTERNET handle = NULL; HINTERNET handle = NULL;
static const WCHAR szUrlForm[] = {'h','t','t','p',':','/','/','%','s',0}; static const WCHAR szUrlForm[] = {'h','t','t','p',':','/','/','%','s',0};
DWORD len; DWORD len;
INTERNET_ASYNC_RESULT iar;
TRACE("-->\n"); TRACE("-->\n");
@ -797,12 +796,9 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
HeapFree(GetProcessHeap(), 0, lpszUrl); HeapFree(GetProcessHeap(), 0, lpszUrl);
iar.dwResult = (DWORD_PTR)handle;
iar.dwError = ERROR_SUCCESS;
SendAsyncCallback(&lpwhs->hdr, dwContext, SendAsyncCallback(&lpwhs->hdr, dwContext,
INTERNET_STATUS_HANDLE_CREATED, &iar, INTERNET_STATUS_HANDLE_CREATED, &handle,
sizeof(INTERNET_ASYNC_RESULT)); sizeof(handle));
/* /*
* A STATUS_REQUEST_COMPLETE is NOT sent here as per my tests on windows * A STATUS_REQUEST_COMPLETE is NOT sent here as per my tests on windows
@ -1867,14 +1863,9 @@ HINTERNET HTTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
/* Don't send a handle created callback if this handle was created with InternetOpenUrl */ /* Don't send a handle created callback if this handle was created with InternetOpenUrl */
if (!(lpwhs->hdr.dwInternalFlags & INET_OPENURL)) if (!(lpwhs->hdr.dwInternalFlags & INET_OPENURL))
{ {
INTERNET_ASYNC_RESULT iar; SendAsyncCallback(&hIC->hdr, dwContext,
INTERNET_STATUS_HANDLE_CREATED, &handle,
iar.dwResult = (DWORD_PTR)handle; sizeof(handle));
iar.dwError = ERROR_SUCCESS;
SendAsyncCallback(&lpwhs->hdr, dwContext,
INTERNET_STATUS_HANDLE_CREATED, &iar,
sizeof(INTERNET_ASYNC_RESULT));
} }
bSuccess = TRUE; bSuccess = TRUE;