wininet: Fix handle cast warnings on 64-bit.
This commit is contained in:
parent
d1613f60c2
commit
bb8883dda0
|
@ -858,13 +858,13 @@ lend:
|
|||
|
||||
if (hFindNext)
|
||||
{
|
||||
iar.dwResult = (DWORD)hFindNext;
|
||||
iar.dwResult = (DWORD_PTR)hFindNext;
|
||||
iar.dwError = ERROR_SUCCESS;
|
||||
SendAsyncCallback(&lpwfs->hdr, lpwfs->hdr.dwContext, INTERNET_STATUS_HANDLE_CREATED,
|
||||
&iar, sizeof(INTERNET_ASYNC_RESULT));
|
||||
}
|
||||
|
||||
iar.dwResult = (DWORD)hFindNext;
|
||||
iar.dwResult = (DWORD_PTR)hFindNext;
|
||||
iar.dwError = hFindNext ? ERROR_SUCCESS : INTERNET_GetLastError();
|
||||
SendAsyncCallback(&lpwfs->hdr, lpwfs->hdr.dwContext, INTERNET_STATUS_REQUEST_COMPLETE,
|
||||
&iar, sizeof(INTERNET_ASYNC_RESULT));
|
||||
|
@ -1343,13 +1343,13 @@ HINTERNET FTP_FtpOpenFileW(LPWININETFTPSESSIONW lpwfs,
|
|||
|
||||
if (lpwh)
|
||||
{
|
||||
iar.dwResult = (DWORD)handle;
|
||||
iar.dwResult = (DWORD_PTR)handle;
|
||||
iar.dwError = ERROR_SUCCESS;
|
||||
SendAsyncCallback(&lpwfs->hdr, lpwfs->hdr.dwContext, INTERNET_STATUS_HANDLE_CREATED,
|
||||
&iar, sizeof(INTERNET_ASYNC_RESULT));
|
||||
}
|
||||
|
||||
iar.dwResult = (DWORD)bSuccess;
|
||||
iar.dwResult = bSuccess;
|
||||
iar.dwError = bSuccess ? ERROR_SUCCESS : INTERNET_GetLastError();
|
||||
SendAsyncCallback(&lpwfs->hdr, lpwfs->hdr.dwContext, INTERNET_STATUS_REQUEST_COMPLETE,
|
||||
&iar, sizeof(INTERNET_ASYNC_RESULT));
|
||||
|
@ -2340,7 +2340,7 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
|
|||
{
|
||||
INTERNET_ASYNC_RESULT iar;
|
||||
|
||||
iar.dwResult = (DWORD)handle;
|
||||
iar.dwResult = (DWORD_PTR)handle;
|
||||
iar.dwError = ERROR_SUCCESS;
|
||||
|
||||
SendAsyncCallback(&hIC->hdr, dwContext,
|
||||
|
|
Loading…
Reference in New Issue