Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
59d76dd3
Commit
59d76dd3
authored
Jun 11, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix some pointer cast warnings.
parent
24e7b5fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
protocol.c
dlls/urlmon/protocol.c
+6
-6
No files found.
dlls/urlmon/protocol.c
View file @
59d76dd3
...
...
@@ -89,13 +89,13 @@ static void request_complete(Protocol *protocol, INTERNET_ASYNC_RESULT *ar)
}
if
(
protocol
->
flags
&
FLAG_FIRST_CONTINUE_COMPLETE
)
data
.
pData
=
(
LPVOID
)
BINDSTATUS_ENDDOWNLOADCOMPONENTS
;
data
.
pData
=
UlongToPtr
(
BINDSTATUS_ENDDOWNLOADCOMPONENTS
)
;
else
data
.
pData
=
(
LPVOID
)
BINDSTATUS_DOWNLOADINGDATA
;
data
.
pData
=
UlongToPtr
(
BINDSTATUS_DOWNLOADINGDATA
)
;
}
else
{
protocol
->
flags
|=
FLAG_ERROR
;
data
.
pData
=
(
LPVOID
)
ar
->
dwError
;
data
.
pData
=
UlongToPtr
(
ar
->
dwError
)
;
}
if
(
protocol
->
bindf
&
BINDF_FROMURLMON
)
...
...
@@ -294,7 +294,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
return
S_OK
;
}
is_start
=
data
->
pData
==
(
LPVOID
)
BINDSTATUS_DOWNLOADINGDATA
;
is_start
=
data
->
pData
==
UlongToPtr
(
BINDSTATUS_DOWNLOADINGDATA
)
;
if
(
!
protocol
->
request
)
{
WARN
(
"Expected request to be non-NULL
\n
"
);
...
...
@@ -308,7 +308,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
if
(
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
;
}
...
...
@@ -338,7 +338,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
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
;
/* InternetQueryDataAvailable may immediately fork and perform its asynchronous
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment