urlmon: Fix pointer cast warnings on 64-bit.
This commit is contained in:
parent
53bc99855a
commit
e2e4da9732
|
@ -397,7 +397,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
|
|||
InternetSetStatusCallbackW(This->internet, HTTPPROTOCOL_InternetStatusCallback);
|
||||
|
||||
This->connect = InternetConnectW(This->internet, host, url.nPort, user,
|
||||
pass, INTERNET_SERVICE_HTTP, 0, (DWORD)This);
|
||||
pass, INTERNET_SERVICE_HTTP, 0, (DWORD_PTR)This);
|
||||
if (!This->connect)
|
||||
{
|
||||
WARN("InternetConnect failed: %d\n", GetLastError());
|
||||
|
@ -425,7 +425,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
|
|||
wszBindVerb[This->bind_info.dwBindVerb] :
|
||||
This->bind_info.szCustomVerb,
|
||||
path, NULL, NULL, (LPCWSTR *)accept_mimes,
|
||||
request_flags, (DWORD)This);
|
||||
request_flags, (DWORD_PTR)This);
|
||||
if (!This->request)
|
||||
{
|
||||
WARN("HttpOpenRequest failed: %d\n", GetLastError());
|
||||
|
|
|
@ -606,7 +606,7 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc,
|
|||
}
|
||||
|
||||
bind->hconnect = InternetConnectW(bind->hinternet, host, url.nPort, user, pass,
|
||||
dwService, 0, (DWORD)bind);
|
||||
dwService, 0, (DWORD_PTR)bind);
|
||||
if (!bind->hconnect)
|
||||
{
|
||||
hres = HRESULT_FROM_WIN32(GetLastError());
|
||||
|
@ -650,7 +650,7 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc,
|
|||
break;
|
||||
|
||||
case INTERNET_SERVICE_HTTP:
|
||||
bind->hrequest = HttpOpenRequestW(bind->hconnect, NULL, path, NULL, NULL, NULL, 0, (DWORD)bind);
|
||||
bind->hrequest = HttpOpenRequestW(bind->hconnect, NULL, path, NULL, NULL, NULL, 0, (DWORD_PTR)bind);
|
||||
if (!bind->hrequest)
|
||||
{
|
||||
hres = HRESULT_FROM_WIN32(GetLastError());
|
||||
|
|
Loading…
Reference in New Issue