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
760043c2
Commit
760043c2
authored
Oct 29, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Call SendCallback in destructor instead of InternetCloseHandle.
parent
ae430f93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
ftp.c
dlls/wininet/ftp.c
+12
-0
http.c
dlls/wininet/http.c
+8
-0
internet.c
dlls/wininet/internet.c
+4
-6
No files found.
dlls/wininet/ftp.c
View file @
760043c2
...
...
@@ -2689,6 +2689,10 @@ static void FTP_CloseSessionHandle(LPWININETHANDLEHEADER hdr)
TRACE
(
"
\n
"
);
INTERNET_SendCallback
(
hdr
,
hdr
->
dwContext
,
INTERNET_STATUS_HANDLE_CLOSING
,
&
hdr
->
hInternet
,
sizeof
(
HINTERNET
));
WININET_Release
(
&
lpwfs
->
lpAppInfo
->
hdr
);
if
(
lpwfs
->
download_in_progress
!=
NULL
)
...
...
@@ -2779,6 +2783,10 @@ static void FTP_CloseFindNextHandle(LPWININETHANDLEHEADER hdr)
TRACE
(
"
\n
"
);
INTERNET_SendCallback
(
hdr
,
hdr
->
dwContext
,
INTERNET_STATUS_HANDLE_CLOSING
,
&
hdr
->
hInternet
,
sizeof
(
HINTERNET
));
WININET_Release
(
&
lpwfn
->
lpFtpSession
->
hdr
);
for
(
i
=
0
;
i
<
lpwfn
->
size
;
i
++
)
...
...
@@ -2805,6 +2813,10 @@ static void FTP_CloseFileTransferHandle(LPWININETHANDLEHEADER hdr)
TRACE
(
"
\n
"
);
INTERNET_SendCallback
(
hdr
,
hdr
->
dwContext
,
INTERNET_STATUS_HANDLE_CLOSING
,
&
hdr
->
hInternet
,
sizeof
(
HINTERNET
));
WININET_Release
(
&
lpwh
->
lpFtpSession
->
hdr
);
if
(
!
lpwh
->
session_deleted
)
...
...
dlls/wininet/http.c
View file @
760043c2
...
...
@@ -2939,6 +2939,10 @@ static void HTTP_CloseHTTPRequestHandle(LPWININETHANDLEHEADER hdr)
TRACE
(
"
\n
"
);
INTERNET_SendCallback
(
hdr
,
hdr
->
dwContext
,
INTERNET_STATUS_HANDLE_CLOSING
,
&
hdr
->
hInternet
,
sizeof
(
HINTERNET
));
WININET_Release
(
&
lpwhr
->
hdr
);
if
(
NETCON_connected
(
&
lpwhr
->
netConnection
))
...
...
@@ -2973,6 +2977,10 @@ static void HTTP_CloseHTTPSessionHandle(LPWININETHANDLEHEADER hdr)
TRACE
(
"%p
\n
"
,
lpwhs
);
INTERNET_SendCallback
(
hdr
,
hdr
->
dwContext
,
INTERNET_STATUS_HANDLE_CLOSING
,
&
hdr
->
hInternet
,
sizeof
(
HINTERNET
));
WININET_Release
(
&
lpwhs
->
lpAppInfo
->
hdr
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhs
->
lpszHostName
);
...
...
dlls/wininet/internet.c
View file @
760043c2
...
...
@@ -975,6 +975,10 @@ static VOID INTERNET_CloseHandle(LPWININETHANDLEHEADER hdr)
TRACE
(
"%p
\n
"
,
lpwai
);
INTERNET_SendCallback
(
hdr
,
hdr
->
dwContext
,
INTERNET_STATUS_HANDLE_CLOSING
,
&
hdr
->
hInternet
,
sizeof
(
HINTERNET
));
HeapFree
(
GetProcessHeap
(),
0
,
lpwai
->
lpszAgent
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwai
->
lpszProxy
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwai
->
lpszProxyBypass
);
...
...
@@ -1007,12 +1011,6 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet)
return
FALSE
;
}
/* FIXME: native appears to send this from the equivalent of
* WININET_Release */
INTERNET_SendCallback
(
lpwh
,
lpwh
->
dwContext
,
INTERNET_STATUS_HANDLE_CLOSING
,
&
hInternet
,
sizeof
(
HINTERNET
));
WININET_FreeHandle
(
hInternet
);
WININET_Release
(
lpwh
);
...
...
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