urlmon: Fix some pointer cast warnings.

This commit is contained in:
Alexandre Julliard 2011-06-11 11:18:00 +02:00
parent 24e7b5fb8b
commit 59d76dd341
1 changed files with 6 additions and 6 deletions

View File

@ -89,13 +89,13 @@ static void request_complete(Protocol *protocol, INTERNET_ASYNC_RESULT *ar)
} }
if(protocol->flags & FLAG_FIRST_CONTINUE_COMPLETE) if(protocol->flags & FLAG_FIRST_CONTINUE_COMPLETE)
data.pData = (LPVOID)BINDSTATUS_ENDDOWNLOADCOMPONENTS; data.pData = UlongToPtr(BINDSTATUS_ENDDOWNLOADCOMPONENTS);
else else
data.pData = (LPVOID)BINDSTATUS_DOWNLOADINGDATA; data.pData = UlongToPtr(BINDSTATUS_DOWNLOADINGDATA);
}else { }else {
protocol->flags |= FLAG_ERROR; protocol->flags |= FLAG_ERROR;
data.pData = (LPVOID)ar->dwError; data.pData = UlongToPtr(ar->dwError);
} }
if (protocol->bindf & BINDF_FROMURLMON) if (protocol->bindf & BINDF_FROMURLMON)
@ -294,7 +294,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
return S_OK; return S_OK;
} }
is_start = data->pData == (LPVOID)BINDSTATUS_DOWNLOADINGDATA; is_start = data->pData == UlongToPtr(BINDSTATUS_DOWNLOADINGDATA);
if(!protocol->request) { if(!protocol->request) {
WARN("Expected request to be non-NULL\n"); WARN("Expected request to be non-NULL\n");
@ -308,7 +308,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
if(protocol->flags & FLAG_ERROR) { if(protocol->flags & FLAG_ERROR) {
protocol->flags &= ~FLAG_ERROR; protocol->flags &= ~FLAG_ERROR;
protocol->vtbl->on_error(protocol, (DWORD)data->pData); protocol->vtbl->on_error(protocol, PtrToUlong(data->pData));
return S_OK; return S_OK;
} }
@ -338,7 +338,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
protocol->flags |= FLAG_FIRST_CONTINUE_COMPLETE; protocol->flags |= FLAG_FIRST_CONTINUE_COMPLETE;
} }
if(data->pData >= (LPVOID)BINDSTATUS_DOWNLOADINGDATA && !protocol->available_bytes) { if(data->pData >= UlongToPtr(BINDSTATUS_DOWNLOADINGDATA) && !protocol->available_bytes) {
BOOL res; BOOL res;
/* InternetQueryDataAvailable may immediately fork and perform its asynchronous /* InternetQueryDataAvailable may immediately fork and perform its asynchronous