Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8e37ed55
Commit
8e37ed55
authored
Jun 10, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't pass handle to INTERNET_REQUEST_COMPLETE unless the request is…
wininet: Don't pass handle to INTERNET_REQUEST_COMPLETE unless the request is opened via InternetPoenUrl.
parent
c0293df4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
http.c
dlls/wininet/http.c
+11
-6
http.c
dlls/wininet/tests/http.c
+1
-0
No files found.
dlls/wininet/http.c
View file @
8e37ed55
...
...
@@ -2660,7 +2660,7 @@ static void HTTP_ReceiveRequestData(http_request_t *req, BOOL first_notif)
}
if
(
res
==
ERROR_SUCCESS
)
send_request_complete
(
req
,
(
DWORD_PTR
)
req
->
hdr
.
hInternet
,
avail
);
send_request_complete
(
req
,
req
->
session
->
hdr
.
dwInternalFlags
&
INET_OPENURL
?
(
DWORD_PTR
)
req
->
hdr
.
hInternet
:
1
,
avail
);
else
send_request_complete
(
req
,
0
,
res
);
}
...
...
@@ -4805,10 +4805,15 @@ lend:
if
(
request
->
session
->
appInfo
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
if
(
res
==
ERROR_SUCCESS
&&
request
->
contentLength
&&
request
->
bytesWritten
==
request
->
bytesToWrite
)
HTTP_ReceiveRequestData
(
request
,
TRUE
);
else
send_request_complete
(
request
,
res
==
ERROR_SUCCESS
?
(
DWORD_PTR
)
request
->
hdr
.
hInternet
:
0
,
res
);
if
(
res
==
ERROR_SUCCESS
)
{
if
(
request
->
contentLength
&&
request
->
bytesWritten
==
request
->
bytesToWrite
)
HTTP_ReceiveRequestData
(
request
,
TRUE
);
else
send_request_complete
(
request
,
request
->
session
->
hdr
.
dwInternalFlags
&
INET_OPENURL
?
(
DWORD_PTR
)
request
->
hdr
.
hInternet
:
1
,
0
);
}
else
{
send_request_complete
(
request
,
0
,
res
);
}
}
TRACE
(
"<--
\n
"
);
...
...
@@ -4902,7 +4907,7 @@ static DWORD HTTP_HttpEndRequestW(http_request_t *request, DWORD dwFlags, DWORD_
if
(
res
==
ERROR_SUCCESS
&&
request
->
contentLength
)
HTTP_ReceiveRequestData
(
request
,
TRUE
);
else
send_request_complete
(
request
,
res
==
ERROR_SUCCESS
?
(
DWORD_PTR
)
request
->
hdr
.
hInternet
:
0
,
res
);
send_request_complete
(
request
,
res
==
ERROR_SUCCESS
,
res
);
return
res
;
}
...
...
dlls/wininet/tests/http.c
View file @
8e37ed55
...
...
@@ -287,6 +287,7 @@ static VOID WINAPI callback(
ok
(
dwStatusInformationLength
==
sizeof
(
INTERNET_ASYNC_RESULT
),
"info length should be sizeof(INTERNET_ASYNC_RESULT) instead of %d
\n
"
,
dwStatusInformationLength
);
ok
(
iar
->
dwResult
==
1
||
iar
->
dwResult
==
0
,
"iar->dwResult = %ld
\n
"
,
iar
->
dwResult
);
trace
(
"%04x:Callback %p 0x%lx INTERNET_STATUS_REQUEST_COMPLETE {%ld,%d} %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
iar
->
dwResult
,
iar
->
dwError
,
dwStatusInformationLength
);
...
...
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