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
7bd385b7
Commit
7bd385b7
authored
Oct 30, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use handle stored in WININETHANDLEHEADER instead of WININET_FindHandle.
parent
1572dbde
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
20 deletions
+3
-20
ftp.c
dlls/wininet/ftp.c
+3
-13
internet.c
dlls/wininet/internet.c
+0
-6
internet.h
dlls/wininet/internet.h
+0
-1
No files found.
dlls/wininet/ftp.c
View file @
7bd385b7
...
@@ -1924,12 +1924,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
...
@@ -1924,12 +1924,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
if
(
lpfnStatusCB
)
if
(
lpfnStatusCB
)
{
{
HINTERNET
hHandle
=
WININET_FindHandle
(
hdr
);
lpfnStatusCB
(
hdr
->
hInternet
,
dwContext
,
INTERNET_STATUS_SENDING_REQUEST
,
NULL
,
0
);
if
(
hHandle
)
{
lpfnStatusCB
(
hHandle
,
dwContext
,
INTERNET_STATUS_SENDING_REQUEST
,
NULL
,
0
);
WININET_Release
(
hdr
);
}
}
}
dwParamLen
=
lpszParam
?
strlen
(
lpszParam
)
+
1
:
0
;
dwParamLen
=
lpszParam
?
strlen
(
lpszParam
)
+
1
:
0
;
...
@@ -1953,13 +1948,8 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
...
@@ -1953,13 +1948,8 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
if
(
lpfnStatusCB
)
if
(
lpfnStatusCB
)
{
{
HINTERNET
hHandle
=
WININET_FindHandle
(
hdr
);
lpfnStatusCB
(
hdr
->
hInternet
,
dwContext
,
INTERNET_STATUS_REQUEST_SENT
,
if
(
hHandle
)
&
nBytesSent
,
sizeof
(
DWORD
));
{
lpfnStatusCB
(
hHandle
,
dwContext
,
INTERNET_STATUS_REQUEST_SENT
,
&
nBytesSent
,
sizeof
(
DWORD
));
WININET_Release
(
hdr
);
}
}
}
TRACE
(
"Sent %d bytes
\n
"
,
nBytesSent
);
TRACE
(
"Sent %d bytes
\n
"
,
nBytesSent
);
...
...
dlls/wininet/internet.c
View file @
7bd385b7
...
@@ -154,12 +154,6 @@ end:
...
@@ -154,12 +154,6 @@ end:
return
info
->
hInternet
=
(
HINTERNET
)
(
handle
+
1
);
return
info
->
hInternet
=
(
HINTERNET
)
(
handle
+
1
);
}
}
HINTERNET
WININET_FindHandle
(
LPWININETHANDLEHEADER
info
)
{
WININET_AddRef
(
info
);
return
info
->
hInternet
;
}
LPWININETHANDLEHEADER
WININET_AddRef
(
LPWININETHANDLEHEADER
info
)
LPWININETHANDLEHEADER
WININET_AddRef
(
LPWININETHANDLEHEADER
info
)
{
{
info
->
dwRefCount
++
;
info
->
dwRefCount
++
;
...
...
dlls/wininet/internet.h
View file @
7bd385b7
...
@@ -416,7 +416,6 @@ LPWININETHANDLEHEADER WININET_GetObject( HINTERNET hinternet );
...
@@ -416,7 +416,6 @@ LPWININETHANDLEHEADER WININET_GetObject( HINTERNET hinternet );
LPWININETHANDLEHEADER
WININET_AddRef
(
LPWININETHANDLEHEADER
info
);
LPWININETHANDLEHEADER
WININET_AddRef
(
LPWININETHANDLEHEADER
info
);
BOOL
WININET_Release
(
LPWININETHANDLEHEADER
info
);
BOOL
WININET_Release
(
LPWININETHANDLEHEADER
info
);
BOOL
WININET_FreeHandle
(
HINTERNET
hinternet
);
BOOL
WININET_FreeHandle
(
HINTERNET
hinternet
);
HINTERNET
WININET_FindHandle
(
LPWININETHANDLEHEADER
info
);
time_t
ConvertTimeString
(
LPCWSTR
asctime
);
time_t
ConvertTimeString
(
LPCWSTR
asctime
);
...
...
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