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
2a50d52c
Commit
2a50d52c
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: Use lpAppInfo instead of lpwhparent where possible.
parent
96c0c6c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
dialogs.c
dlls/wininet/dialogs.c
+2
-2
ftp.c
dlls/wininet/ftp.c
+21
-21
internet.c
dlls/wininet/internet.c
+1
-1
No files found.
dlls/wininet/dialogs.c
View file @
2a50d52c
...
...
@@ -72,7 +72,7 @@ static BOOL WININET_GetProxyServer( HINTERNET hRequest, LPWSTR szBuf, DWORD sz )
if
(
NULL
==
lpwhs
)
return
FALSE
;
hIC
=
(
LPWININETAPPINFOW
)
lpwhs
->
hdr
.
lpwhparent
;
hIC
=
lpwhs
->
lpAppInfo
;
if
(
NULL
==
hIC
)
return
FALSE
;
...
...
@@ -216,7 +216,7 @@ static BOOL WININET_SetProxyAuthorization( HINTERNET hRequest,
return
FALSE
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwhs
->
hdr
.
lpwhparent
;
hIC
=
lpwhs
->
lpAppInfo
;
p
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
username
)
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
!
p
)
...
...
dlls/wininet/ftp.c
View file @
2a50d52c
...
...
@@ -194,7 +194,7 @@ BOOL WINAPI FtpPutFileW(HINTERNET hConnect, LPCWSTR lpszLocalFile,
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -252,7 +252,7 @@ BOOL WINAPI FTP_FtpPutFileW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszLocalFile,
/* Clear any error information */
INTERNET_SetLastError
(
0
);
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
/* Open file to be uploaded */
if
(
INVALID_HANDLE_VALUE
==
...
...
@@ -358,7 +358,7 @@ BOOL WINAPI FtpSetCurrentDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
TRACE
(
"lpszDirectory(%s)
\n
"
,
debugstr_w
(
lpszDirectory
));
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -411,7 +411,7 @@ BOOL WINAPI FTP_FtpSetCurrentDirectoryW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpsz
/* Clear any error information */
INTERNET_SetLastError
(
0
);
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
!
FTP_SendCommand
(
lpwfs
->
sndSocket
,
FTP_CMD_CWD
,
lpszDirectory
,
lpwfs
->
hdr
.
lpfnStatusCB
,
&
lpwfs
->
hdr
,
lpwfs
->
hdr
.
dwContext
))
goto
lend
;
...
...
@@ -485,7 +485,7 @@ BOOL WINAPI FtpCreateDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -550,7 +550,7 @@ BOOL WINAPI FTP_FtpCreateDirectoryW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszDire
}
lend:
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
INTERNET_ASYNC_RESULT
iar
;
...
...
@@ -618,7 +618,7 @@ HINTERNET WINAPI FtpFindFirstFileW(HINTERNET hConnect,
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -681,7 +681,7 @@ HINTERNET WINAPI FTP_FtpFindFirstFileW(LPWININETFTPSESSIONW lpwfs,
if
(
!
FTP_SendPortOrPasv
(
lpwfs
))
goto
lend
;
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
!
FTP_SendCommand
(
lpwfs
->
sndSocket
,
FTP_CMD_LIST
,
NULL
,
lpwfs
->
hdr
.
lpfnStatusCB
,
&
lpwfs
->
hdr
,
lpwfs
->
hdr
.
dwContext
))
goto
lend
;
...
...
@@ -800,7 +800,7 @@ BOOL WINAPI FtpGetCurrentDirectoryW(HINTERNET hFtpSession, LPWSTR lpszCurrentDir
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -858,7 +858,7 @@ BOOL WINAPI FTP_FtpGetCurrentDirectoryW(LPWININETFTPSESSIONW lpwfs, LPWSTR lpszC
ZeroMemory
(
lpszCurrentDirectory
,
*
lpdwCurrentDirectory
);
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
!
FTP_SendCommand
(
lpwfs
->
sndSocket
,
FTP_CMD_PWD
,
NULL
,
lpwfs
->
hdr
.
lpfnStatusCB
,
&
lpwfs
->
hdr
,
lpwfs
->
hdr
.
dwContext
))
goto
lend
;
...
...
@@ -962,7 +962,7 @@ HINTERNET WINAPI FtpOpenFileW(HINTERNET hFtpSession,
INTERNET_SetLastError
(
ERROR_FTP_TRANSFER_IN_PROGRESS
);
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -1055,7 +1055,7 @@ HINTERNET FTP_FtpOpenFileW(LPWININETFTPSESSIONW lpwfs,
if
(
lpwfs
->
lstnSocket
!=
-
1
)
closesocket
(
lpwfs
->
lstnSocket
);
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
INTERNET_ASYNC_RESULT
iar
;
...
...
@@ -1140,7 +1140,7 @@ BOOL WINAPI FtpGetFileW(HINTERNET hInternet, LPCWSTR lpszRemoteFile, LPCWSTR lps
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -1237,7 +1237,7 @@ lend:
if
(
hFile
)
CloseHandle
(
hFile
);
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
INTERNET_ASYNC_RESULT
iar
;
...
...
@@ -1308,7 +1308,7 @@ BOOL WINAPI FtpDeleteFileW(HINTERNET hFtpSession, LPCWSTR lpszFileName)
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -1368,7 +1368,7 @@ BOOL FTP_FtpDeleteFileW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszFileName)
FTP_SetResponseError
(
nResCode
);
}
lend:
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
INTERNET_ASYNC_RESULT
iar
;
...
...
@@ -1427,7 +1427,7 @@ BOOL WINAPI FtpRemoveDirectoryW(HINTERNET hFtpSession, LPCWSTR lpszDirectory)
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -1488,7 +1488,7 @@ BOOL FTP_FtpRemoveDirectoryW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszDirectory)
}
lend:
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
INTERNET_ASYNC_RESULT
iar
;
...
...
@@ -1550,7 +1550,7 @@ BOOL WINAPI FtpRenameFileW(HINTERNET hFtpSession, LPCWSTR lpszSrc, LPCWSTR lpszD
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
...
...
@@ -1618,7 +1618,7 @@ BOOL FTP_FtpRenameFileW( LPWININETFTPSESSIONW lpwfs,
FTP_SetResponseError
(
nResCode
);
lend:
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
INTERNET_ASYNC_RESULT
iar
;
...
...
@@ -2006,7 +2006,7 @@ INT FTP_ReceiveResponse(LPWININETFTPSESSIONW lpwfs, DWORD dwContext)
TRACE
(
"socket(%d)
\n
"
,
lpwfs
->
sndSocket
);
hIC
=
(
LPWININETAPPINFOW
)
lpwfs
->
hdr
.
lpwhparent
;
hIC
=
lpwfs
->
lpAppInfo
;
SendAsyncCallback
(
&
lpwfs
->
hdr
,
dwContext
,
INTERNET_STATUS_RECEIVING_RESPONSE
,
NULL
,
0
);
while
(
1
)
...
...
dlls/wininet/internet.c
View file @
2a50d52c
...
...
@@ -75,7 +75,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wininet);
#define RESPONSE_TIMEOUT 30
#define GET_HWININET_FROM_LPWININETFINDNEXT(lpwh) \
(
LPWININETAPPINFOW)(((LPWININETFTPSESSIONW)(lpwh->hdr.lpwhparent))->hdr.lpwhparent
)
(
((LPWININETFTPSESSIONW)(lpwh->hdr.lpwhparent))->lpAppInfo
)
typedef
struct
...
...
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