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
1ee9ea91
Commit
1ee9ea91
authored
Aug 22, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Aug 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix reference count on internet handle for asynchronous InternetReadFileEx call.
parent
5320d3e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
internet.c
dlls/wininet/internet.c
+6
-5
http.c
dlls/wininet/tests/http.c
+12
-0
No files found.
dlls/wininet/internet.c
View file @
1ee9ea91
...
...
@@ -1883,11 +1883,11 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
req
=
&
workRequest
.
u
.
InternetReadFileExA
;
req
->
lpBuffersOut
=
lpBuffersOut
;
retval
=
INTERNET_AsyncCall
(
&
workRequest
);
if
(
!
retval
)
return
FALSE
;
INTERNET_SetLastError
(
ERROR_IO_PENDING
);
return
FALSE
;
if
(
!
INTERNET_AsyncCall
(
&
workRequest
))
WININET_Release
(
lpwh
)
;
else
INTERNET_SetLastError
(
ERROR_IO_PENDING
);
goto
end
;
}
}
...
...
@@ -1903,6 +1903,7 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
sizeof
(
dwBytesReceived
));
}
end:
WININET_Release
(
lpwh
);
TRACE
(
"-- %s (bytes read: %d)
\n
"
,
retval
?
"TRUE"
:
"FALSE"
,
lpBuffersOut
->
dwBufferLength
);
...
...
dlls/wininet/tests/http.c
View file @
1ee9ea91
...
...
@@ -704,6 +704,8 @@ static void InternetReadFileExA_test(int flags)
abort:
SET_EXPECT2
(
INTERNET_STATUS_HANDLE_CLOSING
,
(
hor
!=
0x0
)
+
(
hic
!=
0x0
));
if
(
hor
)
{
SET_WINE_ALLOW
(
INTERNET_STATUS_CLOSING_CONNECTION
);
SET_WINE_ALLOW
(
INTERNET_STATUS_CONNECTION_CLOSED
);
rc
=
InternetCloseHandle
(
hor
);
ok
((
rc
!=
0
),
"InternetCloseHandle of handle opened by HttpOpenRequestA failed
\n
"
);
rc
=
InternetCloseHandle
(
hor
);
...
...
@@ -721,6 +723,16 @@ abort:
Sleep
(
100
);
CHECK_NOTIFIED2
(
INTERNET_STATUS_HANDLE_CLOSING
,
(
hor
!=
0x0
)
+
(
hic
!=
0x0
));
}
if
(
hor
!=
0x0
)
todo_wine
{
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_CLOSING_CONNECTION
);
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_CONNECTION_CLOSED
);
}
else
{
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_CLOSING_CONNECTION
);
CHECK_NOT_NOTIFIED
(
INTERNET_STATUS_CONNECTION_CLOSED
);
}
CloseHandle
(
hCompleteEvent
);
first_connection_to_test_url
=
FALSE
;
}
...
...
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