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
cd2c4585
Commit
cd2c4585
authored
Oct 05, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Win64 printf format warning fixes.
parent
de3b5be3
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
150 additions
and
150 deletions
+150
-150
Makefile.in
dlls/wininet/Makefile.in
+1
-1
cookie.c
dlls/wininet/cookie.c
+6
-6
dialogs.c
dlls/wininet/dialogs.c
+3
-3
ftp.c
dlls/wininet/ftp.c
+14
-14
http.c
dlls/wininet/http.c
+16
-16
internet.c
dlls/wininet/internet.c
+57
-57
netconnection.c
dlls/wininet/netconnection.c
+2
-2
urlcache.c
dlls/wininet/urlcache.c
+49
-49
utility.c
dlls/wininet/utility.c
+2
-2
No files found.
dlls/wininet/Makefile.in
View file @
cd2c4585
EXTRADEFS
=
-D_WINX32_
-DWINE_NO_LONG_AS_INT
EXTRADEFS
=
-D_WINX32_
TOPSRCDIR
=
@top_srcdir@
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
...
...
dlls/wininet/cookie.c
View file @
cd2c4585
...
@@ -519,7 +519,7 @@ BOOL WINAPI InternetSetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName,
...
@@ -519,7 +519,7 @@ BOOL WINAPI InternetSetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName,
DWORD
WINAPI
InternetSetCookieExA
(
LPCSTR
lpszURL
,
LPCSTR
lpszCookieName
,
LPCSTR
lpszCookieData
,
DWORD
WINAPI
InternetSetCookieExA
(
LPCSTR
lpszURL
,
LPCSTR
lpszCookieName
,
LPCSTR
lpszCookieData
,
DWORD
dwFlags
,
DWORD_PTR
dwReserved
)
DWORD
dwFlags
,
DWORD_PTR
dwReserved
)
{
{
FIXME
(
"(%s, %s, %s, 0x%08
l
x, 0x%08lx) stub
\n
"
,
FIXME
(
"(%s, %s, %s, 0x%08x, 0x%08lx) stub
\n
"
,
debugstr_a
(
lpszURL
),
debugstr_a
(
lpszCookieName
),
debugstr_a
(
lpszCookieData
),
debugstr_a
(
lpszURL
),
debugstr_a
(
lpszCookieName
),
debugstr_a
(
lpszCookieData
),
dwFlags
,
dwReserved
);
dwFlags
,
dwReserved
);
return
TRUE
;
return
TRUE
;
...
@@ -538,7 +538,7 @@ DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR
...
@@ -538,7 +538,7 @@ DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR
DWORD
WINAPI
InternetSetCookieExW
(
LPCWSTR
lpszURL
,
LPCWSTR
lpszCookieName
,
LPCWSTR
lpszCookieData
,
DWORD
WINAPI
InternetSetCookieExW
(
LPCWSTR
lpszURL
,
LPCWSTR
lpszCookieName
,
LPCWSTR
lpszCookieData
,
DWORD
dwFlags
,
DWORD_PTR
dwReserved
)
DWORD
dwFlags
,
DWORD_PTR
dwReserved
)
{
{
FIXME
(
"(%s, %s, %s, 0x%08
l
x, 0x%08lx) stub
\n
"
,
FIXME
(
"(%s, %s, %s, 0x%08x, 0x%08lx) stub
\n
"
,
debugstr_w
(
lpszURL
),
debugstr_w
(
lpszCookieName
),
debugstr_w
(
lpszCookieData
),
debugstr_w
(
lpszURL
),
debugstr_w
(
lpszCookieName
),
debugstr_w
(
lpszCookieData
),
dwFlags
,
dwReserved
);
dwFlags
,
dwReserved
);
return
TRUE
;
return
TRUE
;
...
@@ -552,7 +552,7 @@ DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCW
...
@@ -552,7 +552,7 @@ DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCW
BOOL
WINAPI
InternetGetCookieExA
(
LPCSTR
pchURL
,
LPCSTR
pchCookieName
,
LPSTR
pchCookieData
,
BOOL
WINAPI
InternetGetCookieExA
(
LPCSTR
pchURL
,
LPCSTR
pchCookieName
,
LPSTR
pchCookieData
,
LPDWORD
pcchCookieData
,
DWORD
dwFlags
,
LPVOID
lpReserved
)
LPDWORD
pcchCookieData
,
DWORD
dwFlags
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(%s, %s, %s, %p, 0x%08
l
x, %p) stub
\n
"
,
FIXME
(
"(%s, %s, %s, %p, 0x%08x, %p) stub
\n
"
,
debugstr_a
(
pchURL
),
debugstr_a
(
pchCookieName
),
debugstr_a
(
pchCookieData
),
debugstr_a
(
pchURL
),
debugstr_a
(
pchCookieName
),
debugstr_a
(
pchCookieData
),
pcchCookieData
,
dwFlags
,
lpReserved
);
pcchCookieData
,
dwFlags
,
lpReserved
);
return
FALSE
;
return
FALSE
;
...
@@ -571,7 +571,7 @@ BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pch
...
@@ -571,7 +571,7 @@ BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pch
BOOL
WINAPI
InternetGetCookieExW
(
LPCWSTR
pchURL
,
LPCWSTR
pchCookieName
,
LPWSTR
pchCookieData
,
BOOL
WINAPI
InternetGetCookieExW
(
LPCWSTR
pchURL
,
LPCWSTR
pchCookieName
,
LPWSTR
pchCookieData
,
LPDWORD
pcchCookieData
,
DWORD
dwFlags
,
LPVOID
lpReserved
)
LPDWORD
pcchCookieData
,
DWORD
dwFlags
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(%s, %s, %s, %p, 0x%08
l
x, %p) stub
\n
"
,
FIXME
(
"(%s, %s, %s, %p, 0x%08x, %p) stub
\n
"
,
debugstr_w
(
pchURL
),
debugstr_w
(
pchCookieName
),
debugstr_w
(
pchCookieData
),
debugstr_w
(
pchURL
),
debugstr_w
(
pchCookieName
),
debugstr_w
(
pchCookieData
),
pcchCookieData
,
dwFlags
,
lpReserved
);
pcchCookieData
,
dwFlags
,
lpReserved
);
return
FALSE
;
return
FALSE
;
...
@@ -647,7 +647,7 @@ BOOL WINAPI InternetGetPerSiteCookieDecisionW( LPCWSTR pwchHostName, unsigned lo
...
@@ -647,7 +647,7 @@ BOOL WINAPI InternetGetPerSiteCookieDecisionW( LPCWSTR pwchHostName, unsigned lo
*/
*/
BOOL
WINAPI
InternetSetPerSiteCookieDecisionA
(
LPCSTR
pchHostName
,
DWORD
dwDecision
)
BOOL
WINAPI
InternetSetPerSiteCookieDecisionA
(
LPCSTR
pchHostName
,
DWORD
dwDecision
)
{
{
FIXME
(
"(%s, 0x%08
l
x) stub
\n
"
,
debugstr_a
(
pchHostName
),
dwDecision
);
FIXME
(
"(%s, 0x%08x) stub
\n
"
,
debugstr_a
(
pchHostName
),
dwDecision
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -656,6 +656,6 @@ BOOL WINAPI InternetSetPerSiteCookieDecisionA( LPCSTR pchHostName, DWORD dwDecis
...
@@ -656,6 +656,6 @@ BOOL WINAPI InternetSetPerSiteCookieDecisionA( LPCSTR pchHostName, DWORD dwDecis
*/
*/
BOOL
WINAPI
InternetSetPerSiteCookieDecisionW
(
LPCWSTR
pchHostName
,
DWORD
dwDecision
)
BOOL
WINAPI
InternetSetPerSiteCookieDecisionW
(
LPCWSTR
pchHostName
,
DWORD
dwDecision
)
{
{
FIXME
(
"(%s, 0x%08
l
x) stub
\n
"
,
debugstr_w
(
pchHostName
),
dwDecision
);
FIXME
(
"(%s, 0x%08x) stub
\n
"
,
debugstr_w
(
pchHostName
),
dwDecision
);
return
FALSE
;
return
FALSE
;
}
}
dlls/wininet/dialogs.c
View file @
cd2c4585
...
@@ -336,7 +336,7 @@ static INT WININET_GetConnectionStatus( HINTERNET hRequest )
...
@@ -336,7 +336,7 @@ static INT WININET_GetConnectionStatus( HINTERNET hRequest )
return
-
1
;
return
-
1
;
dwStatus
=
atoiW
(
szStatus
);
dwStatus
=
atoiW
(
szStatus
);
TRACE
(
"request %p status = %
l
d
\n
"
,
hRequest
,
dwStatus
);
TRACE
(
"request %p status = %d
\n
"
,
hRequest
,
dwStatus
);
return
dwStatus
;
return
dwStatus
;
}
}
...
@@ -352,7 +352,7 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
...
@@ -352,7 +352,7 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
HMODULE
hwininet
=
GetModuleHandleA
(
"wininet.dll"
);
HMODULE
hwininet
=
GetModuleHandleA
(
"wininet.dll"
);
INT
dwStatus
;
INT
dwStatus
;
TRACE
(
"%p %p %
ld %08l
x %p
\n
"
,
hWnd
,
hRequest
,
dwError
,
dwFlags
,
lppvData
);
TRACE
(
"%p %p %
d %08
x %p
\n
"
,
hWnd
,
hRequest
,
dwError
,
dwFlags
,
lppvData
);
params
.
hWnd
=
hWnd
;
params
.
hWnd
=
hWnd
;
params
.
hRequest
=
hRequest
;
params
.
hRequest
=
hRequest
;
...
@@ -380,7 +380,7 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
...
@@ -380,7 +380,7 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
case
ERROR_INTERNET_POST_IS_NON_SECURE
:
case
ERROR_INTERNET_POST_IS_NON_SECURE
:
case
ERROR_INTERNET_SEC_CERT_CN_INVALID
:
case
ERROR_INTERNET_SEC_CERT_CN_INVALID
:
case
ERROR_INTERNET_SEC_CERT_DATE_INVALID
:
case
ERROR_INTERNET_SEC_CERT_DATE_INVALID
:
FIXME
(
"Need to display dialog for error %
l
d
\n
"
,
dwError
);
FIXME
(
"Need to display dialog for error %d
\n
"
,
dwError
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
return
ERROR_INVALID_PARAMETER
;
return
ERROR_INVALID_PARAMETER
;
...
...
dlls/wininet/ftp.c
View file @
cd2c4585
...
@@ -791,7 +791,7 @@ BOOL WINAPI FtpGetCurrentDirectoryW(HINTERNET hFtpSession, LPWSTR lpszCurrentDir
...
@@ -791,7 +791,7 @@ BOOL WINAPI FtpGetCurrentDirectoryW(HINTERNET hFtpSession, LPWSTR lpszCurrentDir
LPWININETAPPINFOW
hIC
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
BOOL
r
=
FALSE
;
BOOL
r
=
FALSE
;
TRACE
(
"len(%
l
d)
\n
"
,
*
lpdwCurrentDirectory
);
TRACE
(
"len(%d)
\n
"
,
*
lpdwCurrentDirectory
);
lpwfs
=
(
LPWININETFTPSESSIONW
)
WININET_GetObject
(
hFtpSession
);
lpwfs
=
(
LPWININETFTPSESSIONW
)
WININET_GetObject
(
hFtpSession
);
if
(
NULL
==
lpwfs
||
WH_HFTPSESSION
!=
lpwfs
->
hdr
.
htype
)
if
(
NULL
==
lpwfs
||
WH_HFTPSESSION
!=
lpwfs
->
hdr
.
htype
)
...
@@ -845,7 +845,7 @@ BOOL WINAPI FTP_FtpGetCurrentDirectoryW(LPWININETFTPSESSIONW lpwfs, LPWSTR lpszC
...
@@ -845,7 +845,7 @@ BOOL WINAPI FTP_FtpGetCurrentDirectoryW(LPWININETFTPSESSIONW lpwfs, LPWSTR lpszC
LPWININETAPPINFOW
hIC
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
DWORD
bSuccess
=
FALSE
;
DWORD
bSuccess
=
FALSE
;
TRACE
(
"len(%
l
d)
\n
"
,
*
lpdwCurrentDirectory
);
TRACE
(
"len(%d)
\n
"
,
*
lpdwCurrentDirectory
);
if
(
NULL
==
lpwfs
||
WH_HFTPSESSION
!=
lpwfs
->
hdr
.
htype
)
if
(
NULL
==
lpwfs
||
WH_HFTPSESSION
!=
lpwfs
->
hdr
.
htype
)
{
{
...
@@ -948,7 +948,7 @@ HINTERNET WINAPI FtpOpenFileW(HINTERNET hFtpSession,
...
@@ -948,7 +948,7 @@ HINTERNET WINAPI FtpOpenFileW(HINTERNET hFtpSession,
LPWININETAPPINFOW
hIC
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
HINTERNET
r
=
NULL
;
HINTERNET
r
=
NULL
;
TRACE
(
"(%p,%s,0x%08
lx,0x%08lx,0x%08l
x)
\n
"
,
hFtpSession
,
TRACE
(
"(%p,%s,0x%08
x,0x%08x,0x%08
x)
\n
"
,
hFtpSession
,
debugstr_w
(
lpszFileName
),
fdwAccess
,
dwFlags
,
dwContext
);
debugstr_w
(
lpszFileName
),
fdwAccess
,
dwFlags
,
dwContext
);
lpwfs
=
(
LPWININETFTPSESSIONW
)
WININET_GetObject
(
hFtpSession
);
lpwfs
=
(
LPWININETFTPSESSIONW
)
WININET_GetObject
(
hFtpSession
);
...
@@ -1638,7 +1638,7 @@ lend:
...
@@ -1638,7 +1638,7 @@ lend:
BOOL
WINAPI
FtpCommandA
(
HINTERNET
hConnect
,
BOOL
fExpectResponse
,
DWORD
dwFlags
,
BOOL
WINAPI
FtpCommandA
(
HINTERNET
hConnect
,
BOOL
fExpectResponse
,
DWORD
dwFlags
,
LPCSTR
lpszCommand
,
DWORD_PTR
dwContext
,
HINTERNET
*
phFtpCommand
)
LPCSTR
lpszCommand
,
DWORD_PTR
dwContext
,
HINTERNET
*
phFtpCommand
)
{
{
FIXME
(
"%p %d 0x%08
l
x %s 0x%08lx %p
\n
"
,
hConnect
,
fExpectResponse
,
dwFlags
,
FIXME
(
"%p %d 0x%08x %s 0x%08lx %p
\n
"
,
hConnect
,
fExpectResponse
,
dwFlags
,
debugstr_a
(
lpszCommand
),
dwContext
,
phFtpCommand
);
debugstr_a
(
lpszCommand
),
dwContext
,
phFtpCommand
);
return
TRUE
;
return
TRUE
;
...
@@ -1650,7 +1650,7 @@ BOOL WINAPI FtpCommandA( HINTERNET hConnect, BOOL fExpectResponse, DWORD dwFlags
...
@@ -1650,7 +1650,7 @@ BOOL WINAPI FtpCommandA( HINTERNET hConnect, BOOL fExpectResponse, DWORD dwFlags
BOOL
WINAPI
FtpCommandW
(
HINTERNET
hConnect
,
BOOL
fExpectResponse
,
DWORD
dwFlags
,
BOOL
WINAPI
FtpCommandW
(
HINTERNET
hConnect
,
BOOL
fExpectResponse
,
DWORD
dwFlags
,
LPCWSTR
lpszCommand
,
DWORD_PTR
dwContext
,
HINTERNET
*
phFtpCommand
)
LPCWSTR
lpszCommand
,
DWORD_PTR
dwContext
,
HINTERNET
*
phFtpCommand
)
{
{
FIXME
(
"%p %d 0x%08
l
x %s 0x%08lx %p
\n
"
,
hConnect
,
fExpectResponse
,
dwFlags
,
FIXME
(
"%p %d 0x%08x %s 0x%08lx %p
\n
"
,
hConnect
,
fExpectResponse
,
dwFlags
,
debugstr_w
(
lpszCommand
),
dwContext
,
phFtpCommand
);
debugstr_w
(
lpszCommand
),
dwContext
,
phFtpCommand
);
return
TRUE
;
return
TRUE
;
...
@@ -1938,7 +1938,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
...
@@ -1938,7 +1938,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
sprintf
(
buf
,
"%s%s%s%s"
,
szFtpCommands
[
ftpCmd
],
dwParamLen
?
" "
:
""
,
sprintf
(
buf
,
"%s%s%s%s"
,
szFtpCommands
[
ftpCmd
],
dwParamLen
?
" "
:
""
,
dwParamLen
?
lpszParam
:
""
,
szCRLF
);
dwParamLen
?
lpszParam
:
""
,
szCRLF
);
TRACE
(
"Sending (%s) len(%
l
d)
\n
"
,
buf
,
len
);
TRACE
(
"Sending (%s) len(%d)
\n
"
,
buf
,
len
);
while
((
nBytesSent
<
len
)
&&
(
nRC
!=
-
1
))
while
((
nBytesSent
<
len
)
&&
(
nRC
!=
-
1
))
{
{
nRC
=
send
(
nSocket
,
buf
+
nBytesSent
,
len
-
nBytesSent
,
0
);
nRC
=
send
(
nSocket
,
buf
+
nBytesSent
,
len
-
nBytesSent
,
0
);
...
@@ -1958,7 +1958,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
...
@@ -1958,7 +1958,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
}
}
}
}
TRACE
(
"Sent %
l
d bytes
\n
"
,
nBytesSent
);
TRACE
(
"Sent %d bytes
\n
"
,
nBytesSent
);
return
(
nRC
!=
-
1
);
return
(
nRC
!=
-
1
);
}
}
...
@@ -2546,13 +2546,13 @@ static BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFi
...
@@ -2546,13 +2546,13 @@ static BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFi
nSeconds
=
e_long_time
-
s_long_time
;
nSeconds
=
e_long_time
-
s_long_time
;
if
(
nSeconds
/
60
>
0
)
if
(
nSeconds
/
60
>
0
)
{
{
TRACE
(
"%
ld bytes of %ld bytes (%ld%%) in %ld min %ld sec estimated remaining time %l
d sec
\n
"
,
TRACE
(
"%
d bytes of %d bytes (%d%%) in %d min %d sec estimated remaining time %
d sec
\n
"
,
nTotalSent
,
fi
.
nFileSizeLow
,
nTotalSent
*
100
/
fi
.
nFileSizeLow
,
nSeconds
/
60
,
nTotalSent
,
fi
.
nFileSizeLow
,
nTotalSent
*
100
/
fi
.
nFileSizeLow
,
nSeconds
/
60
,
nSeconds
%
60
,
(
fi
.
nFileSizeLow
-
nTotalSent
)
*
nSeconds
/
nTotalSent
);
nSeconds
%
60
,
(
fi
.
nFileSizeLow
-
nTotalSent
)
*
nSeconds
/
nTotalSent
);
}
}
else
else
{
{
TRACE
(
"%
ld bytes of %ld bytes (%ld%%) in %ld sec estimated remaining time %l
d sec
\n
"
,
TRACE
(
"%
d bytes of %d bytes (%d%%) in %d sec estimated remaining time %
d sec
\n
"
,
nTotalSent
,
fi
.
nFileSizeLow
,
nTotalSent
*
100
/
fi
.
nFileSizeLow
,
nSeconds
,
nTotalSent
,
fi
.
nFileSizeLow
,
nTotalSent
*
100
/
fi
.
nFileSizeLow
,
nSeconds
,
(
fi
.
nFileSizeLow
-
nTotalSent
)
*
nSeconds
/
nTotalSent
);
(
fi
.
nFileSizeLow
-
nTotalSent
)
*
nSeconds
/
nTotalSent
);
}
}
...
@@ -2594,7 +2594,7 @@ static DWORD FTP_SendRetrieve(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile
...
@@ -2594,7 +2594,7 @@ static DWORD FTP_SendRetrieve(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile
if
(
!
FTP_GetFileSize
(
lpwfs
,
lpszRemoteFile
,
&
nResult
))
if
(
!
FTP_GetFileSize
(
lpwfs
,
lpszRemoteFile
,
&
nResult
))
goto
lend
;
goto
lend
;
TRACE
(
"Waiting to receive %
l
d bytes
\n
"
,
nResult
);
TRACE
(
"Waiting to receive %d bytes
\n
"
,
nResult
);
if
(
!
FTP_SendCommand
(
lpwfs
->
sndSocket
,
FTP_CMD_RETR
,
lpszRemoteFile
,
0
,
0
,
0
))
if
(
!
FTP_SendCommand
(
lpwfs
->
sndSocket
,
FTP_CMD_RETR
,
lpszRemoteFile
,
0
,
0
,
0
))
goto
lend
;
goto
lend
;
...
@@ -2657,7 +2657,7 @@ static BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, DW
...
@@ -2657,7 +2657,7 @@ static BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, DW
nBytesReceived
+=
nRC
;
nBytesReceived
+=
nRC
;
}
}
TRACE
(
"%
ld bytes of %ld (%l
d%%)
\r
"
,
nBytesReceived
,
nBytes
,
TRACE
(
"%
d bytes of %d (%
d%%)
\r
"
,
nBytesReceived
,
nBytes
,
nBytesReceived
*
100
/
nBytes
);
nBytesReceived
*
100
/
nBytes
);
}
}
...
@@ -2775,7 +2775,7 @@ static HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LP
...
@@ -2775,7 +2775,7 @@ static HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LP
LPWININETFINDNEXTW
lpwfn
=
NULL
;
LPWININETFINDNEXTW
lpwfn
=
NULL
;
HINTERNET
handle
=
0
;
HINTERNET
handle
=
0
;
TRACE
(
"(%p,%d,%s,%p,%
l
d)
\n
"
,
lpwfs
,
nSocket
,
debugstr_w
(
lpszSearchFile
),
lpFindFileData
,
dwContext
);
TRACE
(
"(%p,%d,%s,%p,%d)
\n
"
,
lpwfs
,
nSocket
,
debugstr_w
(
lpszSearchFile
),
lpFindFileData
,
dwContext
);
if
(
FTP_ParseDirectory
(
lpwfs
,
nSocket
,
lpszSearchFile
,
&
lpafp
,
&
dwSize
))
if
(
FTP_ParseDirectory
(
lpwfs
,
nSocket
,
lpszSearchFile
,
&
lpafp
,
&
dwSize
))
{
{
...
@@ -2802,7 +2802,7 @@ static HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LP
...
@@ -2802,7 +2802,7 @@ static HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LP
if
(
lpwfn
)
if
(
lpwfn
)
WININET_Release
(
&
lpwfn
->
hdr
);
WININET_Release
(
&
lpwfn
->
hdr
);
TRACE
(
"Matched %
l
d files
\n
"
,
dwSize
);
TRACE
(
"Matched %d files
\n
"
,
dwSize
);
return
handle
;
return
handle
;
}
}
...
@@ -2984,7 +2984,7 @@ static BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERT
...
@@ -2984,7 +2984,7 @@ static BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERT
else
{
else
{
lpfp
->
bIsDirectory
=
FALSE
;
lpfp
->
bIsDirectory
=
FALSE
;
lpfp
->
nSize
=
atol
(
pszToken
);
lpfp
->
nSize
=
atol
(
pszToken
);
TRACE
(
"Size: %
l
d
\n
"
,
lpfp
->
nSize
);
TRACE
(
"Size: %d
\n
"
,
lpfp
->
nSize
);
}
}
pszToken
=
strtok
(
NULL
,
szSpace
);
pszToken
=
strtok
(
NULL
,
szSpace
);
...
...
dlls/wininet/http.c
View file @
cd2c4585
...
@@ -460,7 +460,7 @@ BOOL WINAPI HttpAddRequestHeadersW(HINTERNET hHttpRequest,
...
@@ -460,7 +460,7 @@ BOOL WINAPI HttpAddRequestHeadersW(HINTERNET hHttpRequest,
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
LPWININETHTTPREQW
lpwhr
;
LPWININETHTTPREQW
lpwhr
;
TRACE
(
"%p, %s, %
li, %l
i
\n
"
,
hHttpRequest
,
debugstr_w
(
lpszHeader
),
dwHeaderLength
,
TRACE
(
"%p, %s, %
i, %
i
\n
"
,
hHttpRequest
,
debugstr_w
(
lpszHeader
),
dwHeaderLength
,
dwModifier
);
dwModifier
);
if
(
!
lpszHeader
)
if
(
!
lpszHeader
)
...
@@ -497,7 +497,7 @@ BOOL WINAPI HttpAddRequestHeadersA(HINTERNET hHttpRequest,
...
@@ -497,7 +497,7 @@ BOOL WINAPI HttpAddRequestHeadersA(HINTERNET hHttpRequest,
LPWSTR
hdr
;
LPWSTR
hdr
;
BOOL
r
;
BOOL
r
;
TRACE
(
"%p, %s, %
li, %l
i
\n
"
,
hHttpRequest
,
debugstr_a
(
lpszHeader
),
dwHeaderLength
,
TRACE
(
"%p, %s, %
i, %
i
\n
"
,
hHttpRequest
,
debugstr_a
(
lpszHeader
),
dwHeaderLength
,
dwModifier
);
dwModifier
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpszHeader
,
dwHeaderLength
,
NULL
,
0
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpszHeader
,
dwHeaderLength
,
NULL
,
0
);
...
@@ -530,7 +530,7 @@ BOOL WINAPI HttpEndRequestA(HINTERNET hRequest,
...
@@ -530,7 +530,7 @@ BOOL WINAPI HttpEndRequestA(HINTERNET hRequest,
LPINTERNET_BUFFERSW
lpBuffersOutW
,
ptrW
;
LPINTERNET_BUFFERSW
lpBuffersOutW
,
ptrW
;
BOOL
rc
=
FALSE
;
BOOL
rc
=
FALSE
;
TRACE
(
"(%p, %p, %08
lx, %08l
x): stub
\n
"
,
hRequest
,
lpBuffersOut
,
dwFlags
,
TRACE
(
"(%p, %p, %08
x, %08
x): stub
\n
"
,
hRequest
,
lpBuffersOut
,
dwFlags
,
dwContext
);
dwContext
);
ptr
=
lpBuffersOut
;
ptr
=
lpBuffersOut
;
...
@@ -663,7 +663,7 @@ HINTERNET WINAPI HttpOpenRequestW(HINTERNET hHttpSession,
...
@@ -663,7 +663,7 @@ HINTERNET WINAPI HttpOpenRequestW(HINTERNET hHttpSession,
LPWININETHTTPSESSIONW
lpwhs
;
LPWININETHTTPSESSIONW
lpwhs
;
HINTERNET
handle
=
NULL
;
HINTERNET
handle
=
NULL
;
TRACE
(
"(%p, %s, %s, %s, %s, %p, %08
lx, %08l
x)
\n
"
,
hHttpSession
,
TRACE
(
"(%p, %s, %s, %s, %s, %p, %08
x, %08
x)
\n
"
,
hHttpSession
,
debugstr_w
(
lpszVerb
),
debugstr_w
(
lpszObjectName
),
debugstr_w
(
lpszVerb
),
debugstr_w
(
lpszObjectName
),
debugstr_w
(
lpszVersion
),
debugstr_w
(
lpszReferrer
),
lpszAcceptTypes
,
debugstr_w
(
lpszVersion
),
debugstr_w
(
lpszReferrer
),
lpszAcceptTypes
,
dwFlags
,
dwContext
);
dwFlags
,
dwContext
);
...
@@ -719,7 +719,7 @@ HINTERNET WINAPI HttpOpenRequestA(HINTERNET hHttpSession,
...
@@ -719,7 +719,7 @@ HINTERNET WINAPI HttpOpenRequestA(HINTERNET hHttpSession,
INT
len
;
INT
len
;
INT
acceptTypesCount
;
INT
acceptTypesCount
;
HINTERNET
rc
=
FALSE
;
HINTERNET
rc
=
FALSE
;
TRACE
(
"(%p, %s, %s, %s, %s, %p, %08
lx, %08l
x)
\n
"
,
hHttpSession
,
TRACE
(
"(%p, %s, %s, %s, %s, %p, %08
x, %08
x)
\n
"
,
hHttpSession
,
debugstr_a
(
lpszVerb
),
debugstr_a
(
lpszObjectName
),
debugstr_a
(
lpszVerb
),
debugstr_a
(
lpszObjectName
),
debugstr_a
(
lpszVersion
),
debugstr_a
(
lpszReferrer
),
lpszAcceptTypes
,
debugstr_a
(
lpszVersion
),
debugstr_a
(
lpszReferrer
),
lpszAcceptTypes
,
dwFlags
,
dwContext
);
dwFlags
,
dwContext
);
...
@@ -1035,7 +1035,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
...
@@ -1035,7 +1035,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
URL_ESCAPE_SPACES_ONLY
);
URL_ESCAPE_SPACES_ONLY
);
if
(
rc
)
if
(
rc
)
{
{
ERR
(
"Unable to escape string!(%s) (%
l
d)
\n
"
,
debugstr_w
(
lpszObjectName
),
rc
);
ERR
(
"Unable to escape string!(%s) (%d)
\n
"
,
debugstr_w
(
lpszObjectName
),
rc
);
strcpyW
(
lpwhr
->
lpszPath
,
lpszObjectName
);
strcpyW
(
lpwhr
->
lpszPath
,
lpszObjectName
);
}
}
}
}
...
@@ -1577,7 +1577,7 @@ BOOL WINAPI HttpQueryInfoW(HINTERNET hHttpRequest, DWORD dwInfoLevel,
...
@@ -1577,7 +1577,7 @@ BOOL WINAPI HttpQueryInfoW(HINTERNET hHttpRequest, DWORD dwInfoLevel,
DWORD
info
=
dwInfoLevel
&
HTTP_QUERY_HEADER_MASK
;
DWORD
info
=
dwInfoLevel
&
HTTP_QUERY_HEADER_MASK
;
DWORD
i
;
DWORD
i
;
TRACE
(
"(%p, 0x%08
lx)--> %l
d
\n
"
,
hHttpRequest
,
dwInfoLevel
,
dwInfoLevel
);
TRACE
(
"(%p, 0x%08
x)--> %
d
\n
"
,
hHttpRequest
,
dwInfoLevel
,
dwInfoLevel
);
TRACE
(
" Attribute:"
);
TRACE
(
" Attribute:"
);
for
(
i
=
0
;
i
<
(
sizeof
(
query_flags
)
/
sizeof
(
query_flags
[
0
]));
i
++
)
{
for
(
i
=
0
;
i
<
(
sizeof
(
query_flags
)
/
sizeof
(
query_flags
[
0
]));
i
++
)
{
if
(
query_flags
[
i
].
val
==
info
)
{
if
(
query_flags
[
i
].
val
==
info
)
{
...
@@ -1586,7 +1586,7 @@ BOOL WINAPI HttpQueryInfoW(HINTERNET hHttpRequest, DWORD dwInfoLevel,
...
@@ -1586,7 +1586,7 @@ BOOL WINAPI HttpQueryInfoW(HINTERNET hHttpRequest, DWORD dwInfoLevel,
}
}
}
}
if
(
i
==
(
sizeof
(
query_flags
)
/
sizeof
(
query_flags
[
0
])))
{
if
(
i
==
(
sizeof
(
query_flags
)
/
sizeof
(
query_flags
[
0
])))
{
TRACE
(
" Unknown (%08
l
x)"
,
info
);
TRACE
(
" Unknown (%08x)"
,
info
);
}
}
TRACE
(
" Modifier:"
);
TRACE
(
" Modifier:"
);
...
@@ -1598,7 +1598,7 @@ BOOL WINAPI HttpQueryInfoW(HINTERNET hHttpRequest, DWORD dwInfoLevel,
...
@@ -1598,7 +1598,7 @@ BOOL WINAPI HttpQueryInfoW(HINTERNET hHttpRequest, DWORD dwInfoLevel,
}
}
if
(
info_mod
)
{
if
(
info_mod
)
{
TRACE
(
" Unknown (%08
l
x)"
,
info_mod
);
TRACE
(
" Unknown (%08x)"
,
info_mod
);
}
}
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
}
}
...
@@ -1690,7 +1690,7 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET hRequest,
...
@@ -1690,7 +1690,7 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET hRequest,
BOOL
rc
=
FALSE
;
BOOL
rc
=
FALSE
;
DWORD
headerlen
;
DWORD
headerlen
;
TRACE
(
"(%p, %p, %p, %08
lx, %08l
x): stub
\n
"
,
hRequest
,
lpBuffersIn
,
TRACE
(
"(%p, %p, %p, %08
x, %08
x): stub
\n
"
,
hRequest
,
lpBuffersIn
,
lpBuffersOut
,
dwFlags
,
dwContext
);
lpBuffersOut
,
dwFlags
,
dwContext
);
if
(
lpBuffersIn
)
if
(
lpBuffersIn
)
...
@@ -1748,7 +1748,7 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET hRequest,
...
@@ -1748,7 +1748,7 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET hRequest,
LPWININETHTTPSESSIONW
lpwhs
;
LPWININETHTTPSESSIONW
lpwhs
;
LPWININETAPPINFOW
hIC
;
LPWININETAPPINFOW
hIC
;
TRACE
(
"(%p, %p, %p, %08
lx, %08l
x)
\n
"
,
hRequest
,
lpBuffersIn
,
TRACE
(
"(%p, %p, %p, %08
x, %08
x)
\n
"
,
hRequest
,
lpBuffersIn
,
lpBuffersOut
,
dwFlags
,
dwContext
);
lpBuffersOut
,
dwFlags
,
dwContext
);
lpwhr
=
(
LPWININETHTTPREQW
)
WININET_GetObject
(
hRequest
);
lpwhr
=
(
LPWININETHTTPREQW
)
WININET_GetObject
(
hRequest
);
...
@@ -1832,7 +1832,7 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
...
@@ -1832,7 +1832,7 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
LPWININETAPPINFOW
hIC
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
BOOL
r
;
BOOL
r
;
TRACE
(
"%p, %p (%s), %
li, %p, %l
i)
\n
"
,
hHttpRequest
,
TRACE
(
"%p, %p (%s), %
i, %p, %
i)
\n
"
,
hHttpRequest
,
lpszHeaders
,
debugstr_w
(
lpszHeaders
),
dwHeaderLength
,
lpOptional
,
dwOptionalLength
);
lpszHeaders
,
debugstr_w
(
lpszHeaders
),
dwHeaderLength
,
lpOptional
,
dwOptionalLength
);
lpwhr
=
(
LPWININETHTTPREQW
)
WININET_GetObject
(
hHttpRequest
);
lpwhr
=
(
LPWININETHTTPREQW
)
WININET_GetObject
(
hHttpRequest
);
...
@@ -2129,7 +2129,7 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
...
@@ -2129,7 +2129,7 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
URL_ESCAPE_SPACES_ONLY
);
URL_ESCAPE_SPACES_ONLY
);
if
(
rc
)
if
(
rc
)
{
{
ERR
(
"Unable to escape string!(%s) (%
l
d)
\n
"
,
debugstr_w
(
path
),
rc
);
ERR
(
"Unable to escape string!(%s) (%d)
\n
"
,
debugstr_w
(
path
),
rc
);
strcpyW
(
lpwhr
->
lpszPath
,
path
);
strcpyW
(
lpwhr
->
lpszPath
,
path
);
}
}
}
}
...
@@ -2780,7 +2780,7 @@ static BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR v
...
@@ -2780,7 +2780,7 @@ static BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR v
static
const
WCHAR
szConnection
[]
=
{
'C'
,
'o'
,
'n'
,
'n'
,
'e'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
szConnection
[]
=
{
'C'
,
'o'
,
'n'
,
'n'
,
'e'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
BOOL
request_only
=
dwModifier
&
HTTP_ADDHDR_FLAG_REQ
;
BOOL
request_only
=
dwModifier
&
HTTP_ADDHDR_FLAG_REQ
;
TRACE
(
"--> %s: %s - 0x%08
l
x
\n
"
,
debugstr_w
(
field
),
debugstr_w
(
value
),
dwModifier
);
TRACE
(
"--> %s: %s - 0x%08x
\n
"
,
debugstr_w
(
field
),
debugstr_w
(
value
),
dwModifier
);
/* Don't let applications add Connection header to request */
/* Don't let applications add Connection header to request */
if
(
strcmpW
(
szConnection
,
field
)
==
0
&&
(
dwModifier
&
HTTP_ADDHDR_FLAG_REQ
))
if
(
strcmpW
(
szConnection
,
field
)
==
0
&&
(
dwModifier
&
HTTP_ADDHDR_FLAG_REQ
))
...
@@ -3006,7 +3006,7 @@ static INT HTTP_GetCustomHeaderIndex(LPWININETHTTPREQW lpwhr, LPCWSTR lpszField,
...
@@ -3006,7 +3006,7 @@ static INT HTTP_GetCustomHeaderIndex(LPWININETHTTPREQW lpwhr, LPCWSTR lpszField,
if
(
index
>=
lpwhr
->
nCustHeaders
)
if
(
index
>=
lpwhr
->
nCustHeaders
)
index
=
-
1
;
index
=
-
1
;
TRACE
(
"Return: %
l
d
\n
"
,
index
);
TRACE
(
"Return: %d
\n
"
,
index
);
return
index
;
return
index
;
}
}
...
@@ -3078,6 +3078,6 @@ static BOOL HTTP_DeleteCustomHeader(LPWININETHTTPREQW lpwhr, DWORD index)
...
@@ -3078,6 +3078,6 @@ static BOOL HTTP_DeleteCustomHeader(LPWININETHTTPREQW lpwhr, DWORD index)
*/
*/
BOOL
WINAPI
IsHostInProxyBypassList
(
DWORD
flags
,
LPCSTR
szHost
,
DWORD
length
)
BOOL
WINAPI
IsHostInProxyBypassList
(
DWORD
flags
,
LPCSTR
szHost
,
DWORD
length
)
{
{
FIXME
(
"STUB: flags=%
ld host=%s length=%l
d
\n
"
,
flags
,
szHost
,
length
);
FIXME
(
"STUB: flags=%
d host=%s length=%
d
\n
"
,
flags
,
szHost
,
length
);
return
FALSE
;
return
FALSE
;
}
}
dlls/wininet/internet.c
View file @
cd2c4585
...
@@ -181,7 +181,7 @@ HINTERNET WININET_FindHandle( LPWININETHANDLEHEADER info )
...
@@ -181,7 +181,7 @@ HINTERNET WININET_FindHandle( LPWININETHANDLEHEADER info )
LPWININETHANDLEHEADER
WININET_AddRef
(
LPWININETHANDLEHEADER
info
)
LPWININETHANDLEHEADER
WININET_AddRef
(
LPWININETHANDLEHEADER
info
)
{
{
info
->
dwRefCount
++
;
info
->
dwRefCount
++
;
TRACE
(
"%p -> refcount = %
l
d
\n
"
,
info
,
info
->
dwRefCount
);
TRACE
(
"%p -> refcount = %d
\n
"
,
info
,
info
->
dwRefCount
);
return
info
;
return
info
;
}
}
...
@@ -206,7 +206,7 @@ LPWININETHANDLEHEADER WININET_GetObject( HINTERNET hinternet )
...
@@ -206,7 +206,7 @@ LPWININETHANDLEHEADER WININET_GetObject( HINTERNET hinternet )
BOOL
WININET_Release
(
LPWININETHANDLEHEADER
info
)
BOOL
WININET_Release
(
LPWININETHANDLEHEADER
info
)
{
{
info
->
dwRefCount
--
;
info
->
dwRefCount
--
;
TRACE
(
"object %p refcount = %
l
d
\n
"
,
info
,
info
->
dwRefCount
);
TRACE
(
"object %p refcount = %d
\n
"
,
info
,
info
->
dwRefCount
);
if
(
!
info
->
dwRefCount
)
if
(
!
info
->
dwRefCount
)
{
{
TRACE
(
"destroying object %p
\n
"
,
info
);
TRACE
(
"destroying object %p
\n
"
,
info
);
...
@@ -260,7 +260,7 @@ BOOL WININET_FreeHandle( HINTERNET hinternet )
...
@@ -260,7 +260,7 @@ BOOL WININET_FreeHandle( HINTERNET hinternet )
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
{
TRACE
(
"%p,%
l
x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"%p,%x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
...
@@ -468,7 +468,7 @@ static void dump_INTERNET_FLAGS(DWORD dwFlags)
...
@@ -468,7 +468,7 @@ static void dump_INTERNET_FLAGS(DWORD dwFlags)
}
}
}
}
if
(
dwFlags
)
if
(
dwFlags
)
TRACE
(
" Unknown flags (%08
l
x)
\n
"
,
dwFlags
);
TRACE
(
" Unknown flags (%08x)
\n
"
,
dwFlags
);
else
else
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
}
}
...
@@ -501,7 +501,7 @@ HINTERNET WINAPI InternetOpenW(LPCWSTR lpszAgent, DWORD dwAccessType,
...
@@ -501,7 +501,7 @@ HINTERNET WINAPI InternetOpenW(LPCWSTR lpszAgent, DWORD dwAccessType,
DWORD
i
;
DWORD
i
;
const
char
*
access_type_str
=
"Unknown"
;
const
char
*
access_type_str
=
"Unknown"
;
TRACE
(
"(%s, %
li, %s, %s, %l
i)
\n
"
,
debugstr_w
(
lpszAgent
),
dwAccessType
,
TRACE
(
"(%s, %
i, %s, %s, %
i)
\n
"
,
debugstr_w
(
lpszAgent
),
dwAccessType
,
debugstr_w
(
lpszProxy
),
debugstr_w
(
lpszProxyBypass
),
dwFlags
);
debugstr_w
(
lpszProxy
),
debugstr_w
(
lpszProxyBypass
),
dwFlags
);
for
(
i
=
0
;
i
<
(
sizeof
(
access_type
)
/
sizeof
(
access_type
[
0
]));
i
++
)
{
for
(
i
=
0
;
i
<
(
sizeof
(
access_type
)
/
sizeof
(
access_type
[
0
]));
i
++
)
{
if
(
access_type
[
i
].
val
==
dwAccessType
)
{
if
(
access_type
[
i
].
val
==
dwAccessType
)
{
...
@@ -594,7 +594,7 @@ HINTERNET WINAPI InternetOpenA(LPCSTR lpszAgent, DWORD dwAccessType,
...
@@ -594,7 +594,7 @@ HINTERNET WINAPI InternetOpenA(LPCSTR lpszAgent, DWORD dwAccessType,
INT
len
;
INT
len
;
WCHAR
*
szAgent
=
NULL
,
*
szProxy
=
NULL
,
*
szBypass
=
NULL
;
WCHAR
*
szAgent
=
NULL
,
*
szProxy
=
NULL
,
*
szBypass
=
NULL
;
TRACE
(
"(%s, 0x%08
lx, %s, %s, 0x%08l
x)
\n
"
,
debugstr_a
(
lpszAgent
),
TRACE
(
"(%s, 0x%08
x, %s, %s, 0x%08
x)
\n
"
,
debugstr_a
(
lpszAgent
),
dwAccessType
,
debugstr_a
(
lpszProxy
),
debugstr_a
(
lpszProxyBypass
),
dwFlags
);
dwAccessType
,
debugstr_a
(
lpszProxy
),
debugstr_a
(
lpszProxyBypass
),
dwFlags
);
if
(
lpszAgent
)
if
(
lpszAgent
)
...
@@ -714,7 +714,7 @@ BOOL WINAPI InternetGetLastResponseInfoW(LPDWORD lpdwError,
...
@@ -714,7 +714,7 @@ BOOL WINAPI InternetGetLastResponseInfoW(LPDWORD lpdwError,
*/
*/
BOOL
WINAPI
InternetGetConnectedState
(
LPDWORD
lpdwStatus
,
DWORD
dwReserved
)
BOOL
WINAPI
InternetGetConnectedState
(
LPDWORD
lpdwStatus
,
DWORD
dwReserved
)
{
{
TRACE
(
"(%p, 0x%08
l
x)
\n
"
,
lpdwStatus
,
dwReserved
);
TRACE
(
"(%p, 0x%08x)
\n
"
,
lpdwStatus
,
dwReserved
);
if
(
lpdwStatus
)
{
if
(
lpdwStatus
)
{
FIXME
(
"always returning LAN connection.
\n
"
);
FIXME
(
"always returning LAN connection.
\n
"
);
...
@@ -754,7 +754,7 @@ BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved)
...
@@ -754,7 +754,7 @@ BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved)
BOOL
WINAPI
InternetGetConnectedStateExW
(
LPDWORD
lpdwStatus
,
LPWSTR
lpszConnectionName
,
BOOL
WINAPI
InternetGetConnectedStateExW
(
LPDWORD
lpdwStatus
,
LPWSTR
lpszConnectionName
,
DWORD
dwNameLen
,
DWORD
dwReserved
)
DWORD
dwNameLen
,
DWORD
dwReserved
)
{
{
TRACE
(
"(%p, %p, %
ld, 0x%08l
x)
\n
"
,
lpdwStatus
,
lpszConnectionName
,
dwNameLen
,
dwReserved
);
TRACE
(
"(%p, %p, %
d, 0x%08
x)
\n
"
,
lpdwStatus
,
lpszConnectionName
,
dwNameLen
,
dwReserved
);
/* Must be zero */
/* Must be zero */
if
(
dwReserved
)
if
(
dwReserved
)
...
@@ -777,7 +777,7 @@ BOOL WINAPI InternetGetConnectedStateExA(LPDWORD lpdwStatus, LPSTR lpszConnectio
...
@@ -777,7 +777,7 @@ BOOL WINAPI InternetGetConnectedStateExA(LPDWORD lpdwStatus, LPSTR lpszConnectio
LPWSTR
lpwszConnectionName
=
NULL
;
LPWSTR
lpwszConnectionName
=
NULL
;
BOOL
rc
;
BOOL
rc
;
TRACE
(
"(%p, %p, %
ld, 0x%08l
x)
\n
"
,
lpdwStatus
,
lpszConnectionName
,
dwNameLen
,
dwReserved
);
TRACE
(
"(%p, %p, %
d, 0x%08
x)
\n
"
,
lpdwStatus
,
lpszConnectionName
,
dwNameLen
,
dwReserved
);
if
(
lpszConnectionName
&&
dwNameLen
>
0
)
if
(
lpszConnectionName
&&
dwNameLen
>
0
)
lpwszConnectionName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwNameLen
*
sizeof
(
WCHAR
));
lpwszConnectionName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwNameLen
*
sizeof
(
WCHAR
));
...
@@ -814,7 +814,7 @@ HINTERNET WINAPI InternetConnectW(HINTERNET hInternet,
...
@@ -814,7 +814,7 @@ HINTERNET WINAPI InternetConnectW(HINTERNET hInternet,
LPWININETAPPINFOW
hIC
;
LPWININETAPPINFOW
hIC
;
HINTERNET
rc
=
NULL
;
HINTERNET
rc
=
NULL
;
TRACE
(
"(%p, %s, %i, %s, %s, %
li, %li, %l
i)
\n
"
,
hInternet
,
debugstr_w
(
lpszServerName
),
TRACE
(
"(%p, %s, %i, %s, %s, %
i, %i, %
i)
\n
"
,
hInternet
,
debugstr_w
(
lpszServerName
),
nServerPort
,
debugstr_w
(
lpszUserName
),
debugstr_w
(
lpszPassword
),
nServerPort
,
debugstr_w
(
lpszUserName
),
debugstr_w
(
lpszPassword
),
dwService
,
dwFlags
,
dwContext
);
dwService
,
dwFlags
,
dwContext
);
...
@@ -1007,7 +1007,7 @@ BOOL WINAPI INTERNET_FindNextFileW(LPWININETFINDNEXTW lpwh, LPVOID lpvFindData)
...
@@ -1007,7 +1007,7 @@ BOOL WINAPI INTERNET_FindNextFileW(LPWININETFINDNEXTW lpwh, LPVOID lpvFindData)
return
FALSE
;
return
FALSE
;
}
}
TRACE
(
"index(%
ld) size(%l
d)
\n
"
,
lpwh
->
index
,
lpwh
->
size
);
TRACE
(
"index(%
d) size(%
d)
\n
"
,
lpwh
->
index
,
lpwh
->
size
);
lpFindFileData
=
(
LPWIN32_FIND_DATAW
)
lpvFindData
;
lpFindFileData
=
(
LPWIN32_FIND_DATAW
)
lpvFindData
;
ZeroMemory
(
lpFindFileData
,
sizeof
(
WIN32_FIND_DATAA
));
ZeroMemory
(
lpFindFileData
,
sizeof
(
WIN32_FIND_DATAA
));
...
@@ -1022,7 +1022,7 @@ BOOL WINAPI INTERNET_FindNextFileW(LPWININETFINDNEXTW lpwh, LPVOID lpvFindData)
...
@@ -1022,7 +1022,7 @@ BOOL WINAPI INTERNET_FindNextFileW(LPWININETFINDNEXTW lpwh, LPVOID lpvFindData)
FTP_ConvertFileProp
(
&
lpwh
->
lpafp
[
lpwh
->
index
],
lpFindFileData
);
FTP_ConvertFileProp
(
&
lpwh
->
lpafp
[
lpwh
->
index
],
lpFindFileData
);
lpwh
->
index
++
;
lpwh
->
index
++
;
TRACE
(
"
\n
Name: %s
\n
Size: %
l
d
\n
"
,
debugstr_w
(
lpFindFileData
->
cFileName
),
lpFindFileData
->
nFileSizeLow
);
TRACE
(
"
\n
Name: %s
\n
Size: %d
\n
"
,
debugstr_w
(
lpFindFileData
->
cFileName
),
lpFindFileData
->
nFileSizeLow
);
lend:
lend:
...
@@ -1115,7 +1115,7 @@ static void ConvertUrlComponentValue(LPSTR* lppszComponent, LPDWORD dwComponentL
...
@@ -1115,7 +1115,7 @@ static void ConvertUrlComponentValue(LPSTR* lppszComponent, LPDWORD dwComponentL
LPWSTR
lpwszComponent
,
DWORD
dwwComponentLen
,
LPWSTR
lpwszComponent
,
DWORD
dwwComponentLen
,
LPCSTR
lpszStart
,
LPCWSTR
lpwszStart
)
LPCSTR
lpszStart
,
LPCWSTR
lpwszStart
)
{
{
TRACE
(
"%p %
ld %p %l
d %p %p
\n
"
,
lppszComponent
,
*
dwComponentLen
,
lpwszComponent
,
dwwComponentLen
,
lpszStart
,
lpwszStart
);
TRACE
(
"%p %
d %p %
d %p %p
\n
"
,
lppszComponent
,
*
dwComponentLen
,
lpwszComponent
,
dwwComponentLen
,
lpszStart
,
lpwszStart
);
if
(
*
dwComponentLen
!=
0
)
if
(
*
dwComponentLen
!=
0
)
{
{
DWORD
nASCIILength
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpwszComponent
,
dwwComponentLen
,
NULL
,
0
,
NULL
,
NULL
);
DWORD
nASCIILength
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpwszComponent
,
dwwComponentLen
,
NULL
,
0
,
NULL
,
NULL
);
...
@@ -1151,7 +1151,7 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
...
@@ -1151,7 +1151,7 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
URL_COMPONENTSW
UCW
;
URL_COMPONENTSW
UCW
;
WCHAR
*
lpwszUrl
;
WCHAR
*
lpwszUrl
;
TRACE
(
"(%s %
lu %l
x %p)
\n
"
,
debugstr_a
(
lpszUrl
),
dwUrlLength
,
dwFlags
,
lpUrlComponents
);
TRACE
(
"(%s %
u %
x %p)
\n
"
,
debugstr_a
(
lpszUrl
),
dwUrlLength
,
dwFlags
,
lpUrlComponents
);
if
(
dwUrlLength
<=
0
)
if
(
dwUrlLength
<=
0
)
dwUrlLength
=-
1
;
dwUrlLength
=-
1
;
nLength
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpszUrl
,
dwUrlLength
,
NULL
,
0
);
nLength
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpszUrl
,
dwUrlLength
,
NULL
,
0
);
...
@@ -1239,7 +1239,7 @@ static INTERNET_SCHEME GetInternetSchemeW(LPCWSTR lpszScheme, DWORD nMaxCmp)
...
@@ -1239,7 +1239,7 @@ static INTERNET_SCHEME GetInternetSchemeW(LPCWSTR lpszScheme, DWORD nMaxCmp)
{
{
int
i
;
int
i
;
TRACE
(
"%s %
l
d
\n
"
,
debugstr_wn
(
lpszScheme
,
nMaxCmp
),
nMaxCmp
);
TRACE
(
"%s %d
\n
"
,
debugstr_wn
(
lpszScheme
,
nMaxCmp
),
nMaxCmp
);
if
(
lpszScheme
==
NULL
)
if
(
lpszScheme
==
NULL
)
return
INTERNET_SCHEME_UNKNOWN
;
return
INTERNET_SCHEME_UNKNOWN
;
...
@@ -1270,7 +1270,7 @@ static INTERNET_SCHEME GetInternetSchemeW(LPCWSTR lpszScheme, DWORD nMaxCmp)
...
@@ -1270,7 +1270,7 @@ static INTERNET_SCHEME GetInternetSchemeW(LPCWSTR lpszScheme, DWORD nMaxCmp)
*/
*/
static
BOOL
SetUrlComponentValueW
(
LPWSTR
*
lppszComponent
,
LPDWORD
dwComponentLen
,
LPCWSTR
lpszStart
,
DWORD
len
)
static
BOOL
SetUrlComponentValueW
(
LPWSTR
*
lppszComponent
,
LPDWORD
dwComponentLen
,
LPCWSTR
lpszStart
,
DWORD
len
)
{
{
TRACE
(
"%s (%
l
d)
\n
"
,
debugstr_wn
(
lpszStart
,
len
),
len
);
TRACE
(
"%s (%d)
\n
"
,
debugstr_wn
(
lpszStart
,
len
),
len
);
if
(
(
*
dwComponentLen
==
0
)
&&
(
*
lppszComponent
==
NULL
)
)
if
(
(
*
dwComponentLen
==
0
)
&&
(
*
lppszComponent
==
NULL
)
)
return
FALSE
;
return
FALSE
;
...
@@ -1322,7 +1322,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl_orig, DWORD dwUrlLength_orig, DWOR
...
@@ -1322,7 +1322,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl_orig, DWORD dwUrlLength_orig, DWOR
if
(
dwUrlLength
==
0
)
if
(
dwUrlLength
==
0
)
dwUrlLength
=
strlenW
(
lpszUrl
);
dwUrlLength
=
strlenW
(
lpszUrl
);
TRACE
(
"(%s %
lu %l
x %p)
\n
"
,
debugstr_w
(
lpszUrl
),
dwUrlLength
,
dwFlags
,
lpUC
);
TRACE
(
"(%s %
u %
x %p)
\n
"
,
debugstr_w
(
lpszUrl
),
dwUrlLength
,
dwFlags
,
lpUC
);
if
(
!
lpszUrl_orig
||
!*
lpszUrl_orig
)
if
(
!
lpszUrl_orig
||
!*
lpszUrl_orig
)
{
{
...
@@ -1602,8 +1602,8 @@ BOOL WINAPI InternetCanonicalizeUrlA(LPCSTR lpszUrl, LPSTR lpszBuffer,
...
@@ -1602,8 +1602,8 @@ BOOL WINAPI InternetCanonicalizeUrlA(LPCSTR lpszUrl, LPSTR lpszBuffer,
dwFlags
&=
~
ICU_BROWSER_MODE
;
dwFlags
&=
~
ICU_BROWSER_MODE
;
}
}
if
(
dwFlags
)
if
(
dwFlags
)
FIXME
(
"Unhandled flags 0x%08
l
x
\n
"
,
dwFlags
);
FIXME
(
"Unhandled flags 0x%08x
\n
"
,
dwFlags
);
TRACE
(
"%s %p %p %08
l
x
\n
"
,
debugstr_a
(
lpszUrl
),
lpszBuffer
,
TRACE
(
"%s %p %p %08x
\n
"
,
debugstr_a
(
lpszUrl
),
lpszBuffer
,
lpdwBufferLength
,
dwURLFlags
);
lpdwBufferLength
,
dwURLFlags
);
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
...
@@ -1646,8 +1646,8 @@ BOOL WINAPI InternetCanonicalizeUrlW(LPCWSTR lpszUrl, LPWSTR lpszBuffer,
...
@@ -1646,8 +1646,8 @@ BOOL WINAPI InternetCanonicalizeUrlW(LPCWSTR lpszUrl, LPWSTR lpszBuffer,
dwFlags
&=
~
ICU_BROWSER_MODE
;
dwFlags
&=
~
ICU_BROWSER_MODE
;
}
}
if
(
dwFlags
)
if
(
dwFlags
)
FIXME
(
"Unhandled flags 0x%08
l
x
\n
"
,
dwFlags
);
FIXME
(
"Unhandled flags 0x%08x
\n
"
,
dwFlags
);
TRACE
(
"%s %p %p %08
l
x
\n
"
,
debugstr_w
(
lpszUrl
),
lpszBuffer
,
TRACE
(
"%s %p %p %08x
\n
"
,
debugstr_w
(
lpszUrl
),
lpszBuffer
,
lpdwBufferLength
,
dwURLFlags
);
lpdwBufferLength
,
dwURLFlags
);
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
...
@@ -1676,7 +1676,7 @@ INTERNET_STATUS_CALLBACK WINAPI InternetSetStatusCallbackA(
...
@@ -1676,7 +1676,7 @@ INTERNET_STATUS_CALLBACK WINAPI InternetSetStatusCallbackA(
INTERNET_STATUS_CALLBACK
retVal
;
INTERNET_STATUS_CALLBACK
retVal
;
LPWININETHANDLEHEADER
lpwh
;
LPWININETHANDLEHEADER
lpwh
;
TRACE
(
"0x%08
l
x
\n
"
,
(
ULONG
)
hInternet
);
TRACE
(
"0x%08x
\n
"
,
(
ULONG
)
hInternet
);
lpwh
=
WININET_GetObject
(
hInternet
);
lpwh
=
WININET_GetObject
(
hInternet
);
if
(
!
lpwh
)
if
(
!
lpwh
)
...
@@ -1708,7 +1708,7 @@ INTERNET_STATUS_CALLBACK WINAPI InternetSetStatusCallbackW(
...
@@ -1708,7 +1708,7 @@ INTERNET_STATUS_CALLBACK WINAPI InternetSetStatusCallbackW(
INTERNET_STATUS_CALLBACK
retVal
;
INTERNET_STATUS_CALLBACK
retVal
;
LPWININETHANDLEHEADER
lpwh
;
LPWININETHANDLEHEADER
lpwh
;
TRACE
(
"0x%08
l
x
\n
"
,
(
ULONG
)
hInternet
);
TRACE
(
"0x%08x
\n
"
,
(
ULONG
)
hInternet
);
lpwh
=
WININET_GetObject
(
hInternet
);
lpwh
=
WININET_GetObject
(
hInternet
);
if
(
!
lpwh
)
if
(
!
lpwh
)
...
@@ -1762,7 +1762,7 @@ BOOL WINAPI InternetWriteFile(HINTERNET hFile, LPCVOID lpBuffer ,
...
@@ -1762,7 +1762,7 @@ BOOL WINAPI InternetWriteFile(HINTERNET hFile, LPCVOID lpBuffer ,
LPWININETHTTPREQW
lpwhr
;
LPWININETHTTPREQW
lpwhr
;
lpwhr
=
(
LPWININETHTTPREQW
)
lpwh
;
lpwhr
=
(
LPWININETHTTPREQW
)
lpwh
;
TRACE
(
"HTTPREQ %
l
i
\n
"
,
dwNumOfBytesToWrite
);
TRACE
(
"HTTPREQ %i
\n
"
,
dwNumOfBytesToWrite
);
retval
=
NETCON_send
(
&
lpwhr
->
netConnection
,
lpBuffer
,
retval
=
NETCON_send
(
&
lpwhr
->
netConnection
,
lpBuffer
,
dwNumOfBytesToWrite
,
0
,
(
LPINT
)
lpdwNumOfBytesWritten
);
dwNumOfBytesToWrite
,
0
,
(
LPINT
)
lpdwNumOfBytesWritten
);
...
@@ -1858,7 +1858,7 @@ BOOL WINAPI InternetReadFile(HINTERNET hFile, LPVOID lpBuffer,
...
@@ -1858,7 +1858,7 @@ BOOL WINAPI InternetReadFile(HINTERNET hFile, LPVOID lpBuffer,
LPWININETHANDLEHEADER
lpwh
;
LPWININETHANDLEHEADER
lpwh
;
BOOL
retval
;
BOOL
retval
;
TRACE
(
"%p %p %
l
d %p
\n
"
,
hFile
,
lpBuffer
,
dwNumOfBytesToRead
,
pdwNumOfBytesRead
);
TRACE
(
"%p %p %d %p
\n
"
,
hFile
,
lpBuffer
,
dwNumOfBytesToRead
,
pdwNumOfBytesRead
);
lpwh
=
WININET_GetObject
(
hFile
);
lpwh
=
WININET_GetObject
(
hFile
);
if
(
!
lpwh
)
if
(
!
lpwh
)
...
@@ -1870,7 +1870,7 @@ BOOL WINAPI InternetReadFile(HINTERNET hFile, LPVOID lpBuffer,
...
@@ -1870,7 +1870,7 @@ BOOL WINAPI InternetReadFile(HINTERNET hFile, LPVOID lpBuffer,
retval
=
INTERNET_ReadFile
(
lpwh
,
lpBuffer
,
dwNumOfBytesToRead
,
pdwNumOfBytesRead
,
TRUE
,
FALSE
);
retval
=
INTERNET_ReadFile
(
lpwh
,
lpBuffer
,
dwNumOfBytesToRead
,
pdwNumOfBytesRead
,
TRUE
,
FALSE
);
WININET_Release
(
lpwh
);
WININET_Release
(
lpwh
);
TRACE
(
"-- %s (bytes read: %
l
d)
\n
"
,
retval
?
"TRUE"
:
"FALSE"
,
pdwNumOfBytesRead
?
*
pdwNumOfBytesRead
:
-
1
);
TRACE
(
"-- %s (bytes read: %d)
\n
"
,
retval
?
"TRUE"
:
"FALSE"
,
pdwNumOfBytesRead
?
*
pdwNumOfBytesRead
:
-
1
);
return
retval
;
return
retval
;
}
}
...
@@ -1907,10 +1907,10 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
...
@@ -1907,10 +1907,10 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
BOOL
retval
=
FALSE
;
BOOL
retval
=
FALSE
;
LPWININETHANDLEHEADER
lpwh
;
LPWININETHANDLEHEADER
lpwh
;
TRACE
(
"(%p %p 0x%
lx 0x%l
x)
\n
"
,
hFile
,
lpBuffersOut
,
dwFlags
,
dwContext
);
TRACE
(
"(%p %p 0x%
x 0x%
x)
\n
"
,
hFile
,
lpBuffersOut
,
dwFlags
,
dwContext
);
if
(
dwFlags
&
~
(
IRF_ASYNC
|
IRF_NO_WAIT
))
if
(
dwFlags
&
~
(
IRF_ASYNC
|
IRF_NO_WAIT
))
FIXME
(
"these dwFlags aren't implemented: 0x%
l
x
\n
"
,
dwFlags
&
~
(
IRF_ASYNC
|
IRF_NO_WAIT
));
FIXME
(
"these dwFlags aren't implemented: 0x%x
\n
"
,
dwFlags
&
~
(
IRF_ASYNC
|
IRF_NO_WAIT
));
if
(
lpBuffersOut
->
dwStructSize
!=
sizeof
(
*
lpBuffersOut
))
if
(
lpBuffersOut
->
dwStructSize
!=
sizeof
(
*
lpBuffersOut
))
{
{
...
@@ -1953,7 +1953,7 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
...
@@ -1953,7 +1953,7 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
WININET_Release
(
lpwh
);
WININET_Release
(
lpwh
);
TRACE
(
"-- %s (bytes read: %
l
d)
\n
"
,
retval
?
"TRUE"
:
"FALSE"
,
lpBuffersOut
->
dwBufferLength
);
TRACE
(
"-- %s (bytes read: %d)
\n
"
,
retval
?
"TRUE"
:
"FALSE"
,
lpBuffersOut
->
dwBufferLength
);
return
retval
;
return
retval
;
}
}
...
@@ -1978,7 +1978,7 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
...
@@ -1978,7 +1978,7 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
BOOL
WINAPI
InternetReadFileExW
(
HINTERNET
hFile
,
LPINTERNET_BUFFERSW
lpBuffer
,
BOOL
WINAPI
InternetReadFileExW
(
HINTERNET
hFile
,
LPINTERNET_BUFFERSW
lpBuffer
,
DWORD
dwFlags
,
DWORD
dwContext
)
DWORD
dwFlags
,
DWORD
dwContext
)
{
{
ERR
(
"(%p, %p, 0x%
lx, 0x%l
x): not implemented in native
\n
"
,
hFile
,
lpBuffer
,
dwFlags
,
dwContext
);
ERR
(
"(%p, %p, 0x%
x, 0x%
x): not implemented in native
\n
"
,
hFile
,
lpBuffer
,
dwFlags
,
dwContext
);
INTERNET_SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
INTERNET_SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
return
FALSE
;
...
@@ -1993,7 +1993,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
...
@@ -1993,7 +1993,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
LPWININETHANDLEHEADER
lpwhh
;
LPWININETHANDLEHEADER
lpwhh
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
TRACE
(
"(%p, 0x%08
l
x, %p, %p)
\n
"
,
hInternet
,
dwOption
,
lpBuffer
,
lpdwBufferLength
);
TRACE
(
"(%p, 0x%08x, %p, %p)
\n
"
,
hInternet
,
dwOption
,
lpBuffer
,
lpdwBufferLength
);
lpwhh
=
(
LPWININETHANDLEHEADER
)
WININET_GetObject
(
hInternet
);
lpwhh
=
(
LPWININETHANDLEHEADER
)
WININET_GetObject
(
hInternet
);
if
(
!
lpwhh
)
if
(
!
lpwhh
)
...
@@ -2017,7 +2017,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
...
@@ -2017,7 +2017,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
type
=
lpwhh
->
htype
;
type
=
lpwhh
->
htype
;
TRACE
(
"INTERNET_OPTION_HANDLE_TYPE: %
l
d
\n
"
,
type
);
TRACE
(
"INTERNET_OPTION_HANDLE_TYPE: %d
\n
"
,
type
);
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
...
@@ -2033,7 +2033,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
...
@@ -2033,7 +2033,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
case
INTERNET_OPTION_REQUEST_FLAGS
:
case
INTERNET_OPTION_REQUEST_FLAGS
:
{
{
ULONG
flags
=
4
;
ULONG
flags
=
4
;
TRACE
(
"INTERNET_OPTION_REQUEST_FLAGS: %
l
d
\n
"
,
flags
);
TRACE
(
"INTERNET_OPTION_REQUEST_FLAGS: %d
\n
"
,
flags
);
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
else
else
...
@@ -2242,7 +2242,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
...
@@ -2242,7 +2242,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
case
INTERNET_OPTION_MAX_CONNS_PER_SERVER
:
case
INTERNET_OPTION_MAX_CONNS_PER_SERVER
:
{
{
ULONG
conn
=
2
;
ULONG
conn
=
2
;
TRACE
(
"INTERNET_OPTION_MAX_CONNS_PER_SERVER: %
l
d
\n
"
,
conn
);
TRACE
(
"INTERNET_OPTION_MAX_CONNS_PER_SERVER: %d
\n
"
,
conn
);
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
else
else
...
@@ -2256,7 +2256,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
...
@@ -2256,7 +2256,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
case
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER
:
case
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER
:
{
{
ULONG
conn
=
4
;
ULONG
conn
=
4
;
TRACE
(
"INTERNET_OPTION_MAX_CONNS_1_0_SERVER: %
l
d
\n
"
,
conn
);
TRACE
(
"INTERNET_OPTION_MAX_CONNS_1_0_SERVER: %d
\n
"
,
conn
);
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
else
else
...
@@ -2348,7 +2348,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
...
@@ -2348,7 +2348,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
}
}
break
;
break
;
default:
default:
FIXME
(
"Stub! %
l
d
\n
"
,
dwOption
);
FIXME
(
"Stub! %d
\n
"
,
dwOption
);
break
;
break
;
}
}
if
(
lpwhh
)
if
(
lpwhh
)
...
@@ -2406,7 +2406,7 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
...
@@ -2406,7 +2406,7 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
LPWININETHANDLEHEADER
lpwhh
;
LPWININETHANDLEHEADER
lpwhh
;
BOOL
ret
=
TRUE
;
BOOL
ret
=
TRUE
;
TRACE
(
"0x%08
l
x
\n
"
,
dwOption
);
TRACE
(
"0x%08x
\n
"
,
dwOption
);
lpwhh
=
(
LPWININETHANDLEHEADER
)
WININET_GetObject
(
hInternet
);
lpwhh
=
(
LPWININETHANDLEHEADER
)
WININET_GetObject
(
hInternet
);
if
(
!
lpwhh
)
if
(
!
lpwhh
)
...
@@ -2417,7 +2417,7 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
...
@@ -2417,7 +2417,7 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
case
INTERNET_OPTION_HTTP_VERSION
:
case
INTERNET_OPTION_HTTP_VERSION
:
{
{
HTTP_VERSION_INFO
*
pVersion
=
(
HTTP_VERSION_INFO
*
)
lpBuffer
;
HTTP_VERSION_INFO
*
pVersion
=
(
HTTP_VERSION_INFO
*
)
lpBuffer
;
FIXME
(
"Option INTERNET_OPTION_HTTP_VERSION(%
ld,%l
d): STUB
\n
"
,
pVersion
->
dwMajorVersion
,
pVersion
->
dwMinorVersion
);
FIXME
(
"Option INTERNET_OPTION_HTTP_VERSION(%
d,%
d): STUB
\n
"
,
pVersion
->
dwMajorVersion
,
pVersion
->
dwMinorVersion
);
}
}
break
;
break
;
case
INTERNET_OPTION_ERROR_MASK
:
case
INTERNET_OPTION_ERROR_MASK
:
...
@@ -2508,7 +2508,7 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
...
@@ -2508,7 +2508,7 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
FIXME
(
"Option INTERNET_OPTION_SECURITY_FLAGS; STUB
\n
"
);
FIXME
(
"Option INTERNET_OPTION_SECURITY_FLAGS; STUB
\n
"
);
break
;
break
;
default:
default:
FIXME
(
"Option %
l
d STUB
\n
"
,
dwOption
);
FIXME
(
"Option %d STUB
\n
"
,
dwOption
);
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
...
@@ -2588,7 +2588,7 @@ BOOL WINAPI InternetSetOptionA(HINTERNET hInternet, DWORD dwOption,
...
@@ -2588,7 +2588,7 @@ BOOL WINAPI InternetSetOptionA(HINTERNET hInternet, DWORD dwOption,
BOOL
WINAPI
InternetSetOptionExA
(
HINTERNET
hInternet
,
DWORD
dwOption
,
BOOL
WINAPI
InternetSetOptionExA
(
HINTERNET
hInternet
,
DWORD
dwOption
,
LPVOID
lpBuffer
,
DWORD
dwBufferLength
,
DWORD
dwFlags
)
LPVOID
lpBuffer
,
DWORD
dwBufferLength
,
DWORD
dwFlags
)
{
{
FIXME
(
"Flags %08
l
x ignored
\n
"
,
dwFlags
);
FIXME
(
"Flags %08x ignored
\n
"
,
dwFlags
);
return
InternetSetOptionA
(
hInternet
,
dwOption
,
lpBuffer
,
dwBufferLength
);
return
InternetSetOptionA
(
hInternet
,
dwOption
,
lpBuffer
,
dwBufferLength
);
}
}
...
@@ -2598,7 +2598,7 @@ BOOL WINAPI InternetSetOptionExA(HINTERNET hInternet, DWORD dwOption,
...
@@ -2598,7 +2598,7 @@ BOOL WINAPI InternetSetOptionExA(HINTERNET hInternet, DWORD dwOption,
BOOL
WINAPI
InternetSetOptionExW
(
HINTERNET
hInternet
,
DWORD
dwOption
,
BOOL
WINAPI
InternetSetOptionExW
(
HINTERNET
hInternet
,
DWORD
dwOption
,
LPVOID
lpBuffer
,
DWORD
dwBufferLength
,
DWORD
dwFlags
)
LPVOID
lpBuffer
,
DWORD
dwBufferLength
,
DWORD
dwFlags
)
{
{
FIXME
(
"Flags %08
l
x ignored
\n
"
,
dwFlags
);
FIXME
(
"Flags %08x ignored
\n
"
,
dwFlags
);
if
(
dwFlags
&
~
ISO_VALID_FLAGS
)
if
(
dwFlags
&
~
ISO_VALID_FLAGS
)
{
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
...
@@ -2623,7 +2623,7 @@ BOOL WINAPI InternetTimeFromSystemTimeA( const SYSTEMTIME* time, DWORD format, L
...
@@ -2623,7 +2623,7 @@ BOOL WINAPI InternetTimeFromSystemTimeA( const SYSTEMTIME* time, DWORD format, L
BOOL
ret
;
BOOL
ret
;
WCHAR
stringW
[
INTERNET_RFC1123_BUFSIZE
];
WCHAR
stringW
[
INTERNET_RFC1123_BUFSIZE
];
TRACE
(
"%p 0x%08
lx %p 0x%08l
x
\n
"
,
time
,
format
,
string
,
size
);
TRACE
(
"%p 0x%08
x %p 0x%08
x
\n
"
,
time
,
format
,
string
,
size
);
ret
=
InternetTimeFromSystemTimeW
(
time
,
format
,
stringW
,
sizeof
(
stringW
)
);
ret
=
InternetTimeFromSystemTimeW
(
time
,
format
,
stringW
,
sizeof
(
stringW
)
);
if
(
ret
)
WideCharToMultiByte
(
CP_ACP
,
0
,
stringW
,
-
1
,
string
,
size
,
NULL
,
NULL
);
if
(
ret
)
WideCharToMultiByte
(
CP_ACP
,
0
,
stringW
,
-
1
,
string
,
size
,
NULL
,
NULL
);
...
@@ -2640,7 +2640,7 @@ BOOL WINAPI InternetTimeFromSystemTimeW( const SYSTEMTIME* time, DWORD format, L
...
@@ -2640,7 +2640,7 @@ BOOL WINAPI InternetTimeFromSystemTimeW( const SYSTEMTIME* time, DWORD format, L
{
'%'
,
's'
,
','
,
' '
,
'%'
,
'0'
,
'2'
,
'd'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'4'
,
'd'
,
' '
,
'%'
,
'0'
,
{
'%'
,
's'
,
','
,
' '
,
'%'
,
'0'
,
'2'
,
'd'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'4'
,
'd'
,
' '
,
'%'
,
'0'
,
'2'
,
'd'
,
':'
,
'%'
,
'0'
,
'2'
,
'd'
,
':'
,
'%'
,
'0'
,
'2'
,
'd'
,
' '
,
'G'
,
'M'
,
'T'
,
0
};
'2'
,
'd'
,
':'
,
'%'
,
'0'
,
'2'
,
'd'
,
':'
,
'%'
,
'0'
,
'2'
,
'd'
,
' '
,
'G'
,
'M'
,
'T'
,
0
};
TRACE
(
"%p 0x%08
lx %p 0x%08l
x
\n
"
,
time
,
format
,
string
,
size
);
TRACE
(
"%p 0x%08
x %p 0x%08
x
\n
"
,
time
,
format
,
string
,
size
);
if
(
!
time
||
!
string
)
return
FALSE
;
if
(
!
time
||
!
string
)
return
FALSE
;
...
@@ -2668,7 +2668,7 @@ BOOL WINAPI InternetTimeToSystemTimeA( LPCSTR string, SYSTEMTIME* time, DWORD re
...
@@ -2668,7 +2668,7 @@ BOOL WINAPI InternetTimeToSystemTimeA( LPCSTR string, SYSTEMTIME* time, DWORD re
WCHAR
*
stringW
;
WCHAR
*
stringW
;
int
len
;
int
len
;
TRACE
(
"%s %p 0x%08
l
x
\n
"
,
debugstr_a
(
string
),
time
,
reserved
);
TRACE
(
"%s %p 0x%08x
\n
"
,
debugstr_a
(
string
),
time
,
reserved
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
string
,
-
1
,
NULL
,
0
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
string
,
-
1
,
NULL
,
0
);
stringW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
stringW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
...
@@ -2690,7 +2690,7 @@ BOOL WINAPI InternetTimeToSystemTimeW( LPCWSTR string, SYSTEMTIME* time, DWORD r
...
@@ -2690,7 +2690,7 @@ BOOL WINAPI InternetTimeToSystemTimeW( LPCWSTR string, SYSTEMTIME* time, DWORD r
unsigned
int
i
;
unsigned
int
i
;
WCHAR
*
s
=
(
LPWSTR
)
string
;
WCHAR
*
s
=
(
LPWSTR
)
string
;
TRACE
(
"%s %p 0x%08
l
x
\n
"
,
debugstr_w
(
string
),
time
,
reserved
);
TRACE
(
"%s %p 0x%08x
\n
"
,
debugstr_w
(
string
),
time
,
reserved
);
if
(
!
string
||
!
time
)
return
FALSE
;
if
(
!
string
||
!
time
)
return
FALSE
;
...
@@ -2885,7 +2885,7 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
...
@@ -2885,7 +2885,7 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
WCHAR
password
[
1024
],
path
[
2048
],
extra
[
1024
];
WCHAR
password
[
1024
],
path
[
2048
],
extra
[
1024
];
HINTERNET
client
=
NULL
,
client1
=
NULL
;
HINTERNET
client
=
NULL
,
client1
=
NULL
;
TRACE
(
"(%p, %s, %s, %08
lx, %08lx, %08l
x)
\n
"
,
hIC
,
debugstr_w
(
lpszUrl
),
debugstr_w
(
lpszHeaders
),
TRACE
(
"(%p, %s, %s, %08
x, %08x, %08
x)
\n
"
,
hIC
,
debugstr_w
(
lpszUrl
),
debugstr_w
(
lpszHeaders
),
dwHeadersLength
,
dwFlags
,
dwContext
);
dwHeadersLength
,
dwFlags
,
dwContext
);
urlComponents
.
dwStructSize
=
sizeof
(
URL_COMPONENTSW
);
urlComponents
.
dwStructSize
=
sizeof
(
URL_COMPONENTSW
);
...
@@ -2973,7 +2973,7 @@ HINTERNET WINAPI InternetOpenUrlW(HINTERNET hInternet, LPCWSTR lpszUrl,
...
@@ -2973,7 +2973,7 @@ HINTERNET WINAPI InternetOpenUrlW(HINTERNET hInternet, LPCWSTR lpszUrl,
LPWININETAPPINFOW
hIC
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
if
(
TRACE_ON
(
wininet
))
{
if
(
TRACE_ON
(
wininet
))
{
TRACE
(
"(%p, %s, %s, %08
lx, %08lx, %08l
x)
\n
"
,
hInternet
,
debugstr_w
(
lpszUrl
),
debugstr_w
(
lpszHeaders
),
TRACE
(
"(%p, %s, %s, %08
x, %08x, %08
x)
\n
"
,
hInternet
,
debugstr_w
(
lpszUrl
),
debugstr_w
(
lpszHeaders
),
dwHeadersLength
,
dwFlags
,
dwContext
);
dwHeadersLength
,
dwFlags
,
dwContext
);
TRACE
(
" flags :"
);
TRACE
(
" flags :"
);
dump_INTERNET_FLAGS
(
dwFlags
);
dump_INTERNET_FLAGS
(
dwFlags
);
...
@@ -3732,7 +3732,7 @@ BOOL WINAPI InternetCombineUrlA(LPCSTR lpszBaseUrl, LPCSTR lpszRelativeUrl,
...
@@ -3732,7 +3732,7 @@ BOOL WINAPI InternetCombineUrlA(LPCSTR lpszBaseUrl, LPCSTR lpszRelativeUrl,
{
{
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%s, %s, %p, %p, 0x%08
l
x)
\n
"
,
debugstr_a
(
lpszBaseUrl
),
debugstr_a
(
lpszRelativeUrl
),
lpszBuffer
,
lpdwBufferLength
,
dwFlags
);
TRACE
(
"(%s, %s, %p, %p, 0x%08x)
\n
"
,
debugstr_a
(
lpszBaseUrl
),
debugstr_a
(
lpszRelativeUrl
),
lpszBuffer
,
lpdwBufferLength
,
dwFlags
);
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
dwFlags
^=
ICU_NO_ENCODE
;
dwFlags
^=
ICU_NO_ENCODE
;
...
@@ -3758,7 +3758,7 @@ BOOL WINAPI InternetCombineUrlW(LPCWSTR lpszBaseUrl, LPCWSTR lpszRelativeUrl,
...
@@ -3758,7 +3758,7 @@ BOOL WINAPI InternetCombineUrlW(LPCWSTR lpszBaseUrl, LPCWSTR lpszRelativeUrl,
{
{
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%s, %s, %p, %p, 0x%08
l
x)
\n
"
,
debugstr_w
(
lpszBaseUrl
),
debugstr_w
(
lpszRelativeUrl
),
lpszBuffer
,
lpdwBufferLength
,
dwFlags
);
TRACE
(
"(%s, %s, %p, %p, 0x%08x)
\n
"
,
debugstr_w
(
lpszBaseUrl
),
debugstr_w
(
lpszRelativeUrl
),
lpszBuffer
,
lpdwBufferLength
,
dwFlags
);
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
dwFlags
^=
ICU_NO_ENCODE
;
dwFlags
^=
ICU_NO_ENCODE
;
...
@@ -3970,7 +3970,7 @@ BOOL WINAPI InternetCreateUrlA(LPURL_COMPONENTSA lpUrlComponents, DWORD dwFlags,
...
@@ -3970,7 +3970,7 @@ BOOL WINAPI InternetCreateUrlA(LPURL_COMPONENTSA lpUrlComponents, DWORD dwFlags,
LPWSTR
urlW
=
NULL
;
LPWSTR
urlW
=
NULL
;
URL_COMPONENTSW
urlCompW
;
URL_COMPONENTSW
urlCompW
;
TRACE
(
"(%p,%
l
d,%p,%p)
\n
"
,
lpUrlComponents
,
dwFlags
,
lpszUrl
,
lpdwUrlLength
);
TRACE
(
"(%p,%d,%p,%p)
\n
"
,
lpUrlComponents
,
dwFlags
,
lpszUrl
,
lpdwUrlLength
);
if
(
!
lpUrlComponents
)
if
(
!
lpUrlComponents
)
return
FALSE
;
return
FALSE
;
...
@@ -4040,7 +4040,7 @@ BOOL WINAPI InternetCreateUrlW(LPURL_COMPONENTSW lpUrlComponents, DWORD dwFlags,
...
@@ -4040,7 +4040,7 @@ BOOL WINAPI InternetCreateUrlW(LPURL_COMPONENTSW lpUrlComponents, DWORD dwFlags,
static
const
WCHAR
slashSlashW
[]
=
{
'/'
,
'/'
};
static
const
WCHAR
slashSlashW
[]
=
{
'/'
,
'/'
};
static
const
WCHAR
percentD
[]
=
{
'%'
,
'd'
,
0
};
static
const
WCHAR
percentD
[]
=
{
'%'
,
'd'
,
0
};
TRACE
(
"(%p,%
l
d,%p,%p)
\n
"
,
lpUrlComponents
,
dwFlags
,
lpszUrl
,
lpdwUrlLength
);
TRACE
(
"(%p,%d,%p,%p)
\n
"
,
lpUrlComponents
,
dwFlags
,
lpszUrl
,
lpdwUrlLength
);
if
(
!
lpUrlComponents
)
if
(
!
lpUrlComponents
)
return
FALSE
;
return
FALSE
;
...
@@ -4180,7 +4180,7 @@ DWORD WINAPI InternetConfirmZoneCrossingW( HWND hWnd, LPWSTR szUrlPrev, LPWSTR s
...
@@ -4180,7 +4180,7 @@ DWORD WINAPI InternetConfirmZoneCrossingW( HWND hWnd, LPWSTR szUrlPrev, LPWSTR s
DWORD
WINAPI
InternetDialA
(
HWND
hwndParent
,
LPSTR
lpszConnectoid
,
DWORD
dwFlags
,
DWORD
WINAPI
InternetDialA
(
HWND
hwndParent
,
LPSTR
lpszConnectoid
,
DWORD
dwFlags
,
LPDWORD
lpdwConnection
,
DWORD
dwReserved
)
LPDWORD
lpdwConnection
,
DWORD
dwReserved
)
{
{
FIXME
(
"(%p, %p, 0x%08
lx, %p, 0x%08l
x) stub
\n
"
,
hwndParent
,
lpszConnectoid
,
dwFlags
,
FIXME
(
"(%p, %p, 0x%08
x, %p, 0x%08
x) stub
\n
"
,
hwndParent
,
lpszConnectoid
,
dwFlags
,
lpdwConnection
,
dwReserved
);
lpdwConnection
,
dwReserved
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
@@ -4188,26 +4188,26 @@ DWORD WINAPI InternetDialA( HWND hwndParent, LPSTR lpszConnectoid, DWORD dwFlags
...
@@ -4188,26 +4188,26 @@ DWORD WINAPI InternetDialA( HWND hwndParent, LPSTR lpszConnectoid, DWORD dwFlags
DWORD
WINAPI
InternetDialW
(
HWND
hwndParent
,
LPWSTR
lpszConnectoid
,
DWORD
dwFlags
,
DWORD
WINAPI
InternetDialW
(
HWND
hwndParent
,
LPWSTR
lpszConnectoid
,
DWORD
dwFlags
,
LPDWORD
lpdwConnection
,
DWORD
dwReserved
)
LPDWORD
lpdwConnection
,
DWORD
dwReserved
)
{
{
FIXME
(
"(%p, %p, 0x%08
lx, %p, 0x%08l
x) stub
\n
"
,
hwndParent
,
lpszConnectoid
,
dwFlags
,
FIXME
(
"(%p, %p, 0x%08
x, %p, 0x%08
x) stub
\n
"
,
hwndParent
,
lpszConnectoid
,
dwFlags
,
lpdwConnection
,
dwReserved
);
lpdwConnection
,
dwReserved
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
BOOL
WINAPI
InternetGoOnlineA
(
LPSTR
lpszURL
,
HWND
hwndParent
,
DWORD
dwReserved
)
BOOL
WINAPI
InternetGoOnlineA
(
LPSTR
lpszURL
,
HWND
hwndParent
,
DWORD
dwReserved
)
{
{
FIXME
(
"(%s, %p, 0x%08
l
x) stub
\n
"
,
debugstr_a
(
lpszURL
),
hwndParent
,
dwReserved
);
FIXME
(
"(%s, %p, 0x%08x) stub
\n
"
,
debugstr_a
(
lpszURL
),
hwndParent
,
dwReserved
);
return
TRUE
;
return
TRUE
;
}
}
BOOL
WINAPI
InternetGoOnlineW
(
LPWSTR
lpszURL
,
HWND
hwndParent
,
DWORD
dwReserved
)
BOOL
WINAPI
InternetGoOnlineW
(
LPWSTR
lpszURL
,
HWND
hwndParent
,
DWORD
dwReserved
)
{
{
FIXME
(
"(%s, %p, 0x%08
l
x) stub
\n
"
,
debugstr_w
(
lpszURL
),
hwndParent
,
dwReserved
);
FIXME
(
"(%s, %p, 0x%08x) stub
\n
"
,
debugstr_w
(
lpszURL
),
hwndParent
,
dwReserved
);
return
TRUE
;
return
TRUE
;
}
}
DWORD
WINAPI
InternetHangUp
(
DWORD
dwConnection
,
DWORD
dwReserved
)
DWORD
WINAPI
InternetHangUp
(
DWORD
dwConnection
,
DWORD
dwReserved
)
{
{
FIXME
(
"(0x%08
lx, 0x%08l
x) stub
\n
"
,
dwConnection
,
dwReserved
);
FIXME
(
"(0x%08
x, 0x%08
x) stub
\n
"
,
dwConnection
,
dwReserved
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
@@ -4221,6 +4221,6 @@ BOOL WINAPI CreateMD5SSOHash( PWSTR pszChallengeInfo, PWSTR pwszRealm, PWSTR pws
...
@@ -4221,6 +4221,6 @@ BOOL WINAPI CreateMD5SSOHash( PWSTR pszChallengeInfo, PWSTR pwszRealm, PWSTR pws
BOOL
WINAPI
ResumeSuspendedDownload
(
HINTERNET
hInternet
,
DWORD
dwError
)
BOOL
WINAPI
ResumeSuspendedDownload
(
HINTERNET
hInternet
,
DWORD
dwError
)
{
{
FIXME
(
"(%p, 0x%08
l
x) stub
\n
"
,
hInternet
,
dwError
);
FIXME
(
"(%p, 0x%08x) stub
\n
"
,
hInternet
,
dwError
);
return
FALSE
;
return
FALSE
;
}
}
dlls/wininet/netconnection.c
View file @
cd2c4585
...
@@ -624,7 +624,7 @@ BOOL NETCON_getNextLine(WININET_NETCONNECTION *connection, LPSTR lpszBuffer, LPD
...
@@ -624,7 +624,7 @@ BOOL NETCON_getNextLine(WININET_NETCONNECTION *connection, LPSTR lpszBuffer, LPD
{
{
lpszBuffer
[
nRecv
++
]
=
'\0'
;
lpszBuffer
[
nRecv
++
]
=
'\0'
;
*
dwBuffer
=
nRecv
;
*
dwBuffer
=
nRecv
;
TRACE
(
":%
l
u %s
\n
"
,
nRecv
,
lpszBuffer
);
TRACE
(
":%u %s
\n
"
,
nRecv
,
lpszBuffer
);
return
TRUE
;
return
TRUE
;
}
}
else
else
...
@@ -665,7 +665,7 @@ BOOL NETCON_getNextLine(WININET_NETCONNECTION *connection, LPSTR lpszBuffer, LPD
...
@@ -665,7 +665,7 @@ BOOL NETCON_getNextLine(WININET_NETCONNECTION *connection, LPSTR lpszBuffer, LPD
{
{
lpszBuffer
[
nRecv
++
]
=
'\0'
;
lpszBuffer
[
nRecv
++
]
=
'\0'
;
*
dwBuffer
=
nRecv
;
*
dwBuffer
=
nRecv
;
TRACE
(
"_SSL:%
l
u %s
\n
"
,
nRecv
,
lpszBuffer
);
TRACE
(
"_SSL:%u %s
\n
"
,
nRecv
,
lpszBuffer
);
return
TRUE
;
return
TRUE
;
}
}
return
FALSE
;
return
FALSE
;
...
...
dlls/wininet/urlcache.c
View file @
cd2c4585
...
@@ -436,7 +436,7 @@ static BOOL URLCacheContainer_OpenIndex(URLCACHECONTAINER * pContainer)
...
@@ -436,7 +436,7 @@ static BOOL URLCacheContainer_OpenIndex(URLCACHECONTAINER * pContainer)
CloseHandle
(
hFile
);
CloseHandle
(
hFile
);
if
(
!
pContainer
->
hMapping
)
if
(
!
pContainer
->
hMapping
)
{
{
ERR
(
"Couldn't create file mapping (error is %
l
d)
\n
"
,
GetLastError
());
ERR
(
"Couldn't create file mapping (error is %d)
\n
"
,
GetLastError
());
return
FALSE
;
return
FALSE
;
}
}
...
@@ -496,7 +496,7 @@ static BOOL URLCacheContainers_AddContainer(LPCWSTR cache_prefix, LPCWSTR path,
...
@@ -496,7 +496,7 @@ static BOOL URLCacheContainers_AddContainer(LPCWSTR cache_prefix, LPCWSTR path,
if
((
pContainer
->
hMutex
=
CreateMutexW
(
NULL
,
FALSE
,
mutex_name
))
==
NULL
)
if
((
pContainer
->
hMutex
=
CreateMutexW
(
NULL
,
FALSE
,
mutex_name
))
==
NULL
)
{
{
ERR
(
"couldn't create mutex (error is %
l
d)
\n
"
,
GetLastError
());
ERR
(
"couldn't create mutex (error is %d)
\n
"
,
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
pContainer
->
path
);
HeapFree
(
GetProcessHeap
(),
0
,
pContainer
->
path
);
HeapFree
(
GetProcessHeap
(),
0
,
pContainer
);
HeapFree
(
GetProcessHeap
(),
0
,
pContainer
);
return
FALSE
;
return
FALSE
;
...
@@ -547,7 +547,7 @@ void URLCacheContainers_CreateDefaults(void)
...
@@ -547,7 +547,7 @@ void URLCacheContainers_CreateDefaults(void)
if
(
FAILED
(
SHGetSpecialFolderPathW
(
NULL
,
wszCachePath
,
DefaultContainerData
[
i
].
nFolder
,
TRUE
)))
if
(
FAILED
(
SHGetSpecialFolderPathW
(
NULL
,
wszCachePath
,
DefaultContainerData
[
i
].
nFolder
,
TRUE
)))
{
{
ERR
(
"Couldn't get path for default container %
l
u
\n
"
,
i
);
ERR
(
"Couldn't get path for default container %u
\n
"
,
i
);
continue
;
continue
;
}
}
path_len
=
strlenW
(
wszCachePath
);
path_len
=
strlenW
(
wszCachePath
);
...
@@ -638,7 +638,7 @@ static LPURLCACHE_HEADER URLCacheContainer_LockIndex(URLCACHECONTAINER * pContai
...
@@ -638,7 +638,7 @@ static LPURLCACHE_HEADER URLCacheContainer_LockIndex(URLCACHECONTAINER * pContai
if
(
!
pIndexData
)
if
(
!
pIndexData
)
{
{
ReleaseMutex
(
pContainer
->
hMutex
);
ReleaseMutex
(
pContainer
->
hMutex
);
ERR
(
"Couldn't MapViewOfFile. Error: %
l
d
\n
"
,
GetLastError
());
ERR
(
"Couldn't MapViewOfFile. Error: %d
\n
"
,
GetLastError
());
return
FALSE
;
return
FALSE
;
}
}
pHeader
=
(
URLCACHE_HEADER
*
)
pIndexData
;
pHeader
=
(
URLCACHE_HEADER
*
)
pIndexData
;
...
@@ -659,13 +659,13 @@ static LPURLCACHE_HEADER URLCacheContainer_LockIndex(URLCACHECONTAINER * pContai
...
@@ -659,13 +659,13 @@ static LPURLCACHE_HEADER URLCacheContainer_LockIndex(URLCACHECONTAINER * pContai
if
(
!
pIndexData
)
if
(
!
pIndexData
)
{
{
ReleaseMutex
(
pContainer
->
hMutex
);
ReleaseMutex
(
pContainer
->
hMutex
);
ERR
(
"Couldn't MapViewOfFile. Error: %
l
d
\n
"
,
GetLastError
());
ERR
(
"Couldn't MapViewOfFile. Error: %d
\n
"
,
GetLastError
());
return
FALSE
;
return
FALSE
;
}
}
pHeader
=
(
URLCACHE_HEADER
*
)
pIndexData
;
pHeader
=
(
URLCACHE_HEADER
*
)
pIndexData
;
}
}
TRACE
(
"Signature: %s, file size: %
l
d bytes
\n
"
,
pHeader
->
szSignature
,
pHeader
->
dwFileSize
);
TRACE
(
"Signature: %s, file size: %d bytes
\n
"
,
pHeader
->
szSignature
,
pHeader
->
dwFileSize
);
for
(
index
=
0
;
index
<
pHeader
->
DirectoryCount
;
index
++
)
for
(
index
=
0
;
index
<
pHeader
->
DirectoryCount
;
index
++
)
{
{
...
@@ -760,12 +760,12 @@ static BOOL URLCache_FindFirstFreeEntry(URLCACHE_HEADER * pHeader, DWORD dwBlock
...
@@ -760,12 +760,12 @@ static BOOL URLCache_FindFirstFreeEntry(URLCACHE_HEADER * pHeader, DWORD dwBlock
dwFreeCounter
+
dwBlockNumber
<
pHeader
->
dwIndexCapacityInBlocks
&&
dwFreeCounter
+
dwBlockNumber
<
pHeader
->
dwIndexCapacityInBlocks
&&
URLCache_Allocation_BlockIsFree
(
AllocationTable
,
dwBlockNumber
+
dwFreeCounter
);
URLCache_Allocation_BlockIsFree
(
AllocationTable
,
dwBlockNumber
+
dwFreeCounter
);
dwFreeCounter
++
)
dwFreeCounter
++
)
TRACE
(
"Found free block at no. %
ld (0x%l
x)
\n
"
,
dwBlockNumber
,
ENTRY_START_OFFSET
+
dwBlockNumber
*
BLOCKSIZE
);
TRACE
(
"Found free block at no. %
d (0x%
x)
\n
"
,
dwBlockNumber
,
ENTRY_START_OFFSET
+
dwBlockNumber
*
BLOCKSIZE
);
if
(
dwFreeCounter
==
dwBlocksNeeded
)
if
(
dwFreeCounter
==
dwBlocksNeeded
)
{
{
DWORD
index
;
DWORD
index
;
TRACE
(
"Found free blocks starting at no. %
ld (0x%l
x)
\n
"
,
dwBlockNumber
,
ENTRY_START_OFFSET
+
dwBlockNumber
*
BLOCKSIZE
);
TRACE
(
"Found free blocks starting at no. %
d (0x%
x)
\n
"
,
dwBlockNumber
,
ENTRY_START_OFFSET
+
dwBlockNumber
*
BLOCKSIZE
);
for
(
index
=
0
;
index
<
dwBlocksNeeded
;
index
++
)
for
(
index
=
0
;
index
<
dwBlocksNeeded
;
index
++
)
URLCache_Allocation_BlockAllocate
(
AllocationTable
,
dwBlockNumber
+
index
);
URLCache_Allocation_BlockAllocate
(
AllocationTable
,
dwBlockNumber
+
index
);
*
ppEntry
=
(
CACHEFILE_ENTRY
*
)((
LPBYTE
)
pHeader
+
ENTRY_START_OFFSET
+
dwBlockNumber
*
BLOCKSIZE
);
*
ppEntry
=
(
CACHEFILE_ENTRY
*
)((
LPBYTE
)
pHeader
+
ENTRY_START_OFFSET
+
dwBlockNumber
*
BLOCKSIZE
);
...
@@ -1136,7 +1136,7 @@ static BOOL URLCache_FindHash(LPCURLCACHE_HEADER pHeader, LPCSTR lpszUrl, struct
...
@@ -1136,7 +1136,7 @@ static BOOL URLCache_FindHash(LPCURLCACHE_HEADER pHeader, LPCSTR lpszUrl, struct
int
i
;
int
i
;
if
(
pHashEntry
->
dwHashTableNumber
!=
dwHashTableNumber
++
)
if
(
pHashEntry
->
dwHashTableNumber
!=
dwHashTableNumber
++
)
{
{
ERR
(
"Error: not right hash table number (%
ld) expected %l
d
\n
"
,
pHashEntry
->
dwHashTableNumber
,
dwHashTableNumber
);
ERR
(
"Error: not right hash table number (%
d) expected %
d
\n
"
,
pHashEntry
->
dwHashTableNumber
,
dwHashTableNumber
);
continue
;
continue
;
}
}
/* make sure that it is in fact a hash entry */
/* make sure that it is in fact a hash entry */
...
@@ -1262,7 +1262,7 @@ static BOOL URLCache_AddEntryToHash(LPURLCACHE_HEADER pHeader, LPCSTR lpszUrl, D
...
@@ -1262,7 +1262,7 @@ static BOOL URLCache_AddEntryToHash(LPURLCACHE_HEADER pHeader, LPCSTR lpszUrl, D
int
i
;
int
i
;
if
(
pHashEntry
->
dwHashTableNumber
!=
dwHashTableNumber
++
)
if
(
pHashEntry
->
dwHashTableNumber
!=
dwHashTableNumber
++
)
{
{
ERR
(
"not right hash table number (%
ld) expected %l
d
\n
"
,
pHashEntry
->
dwHashTableNumber
,
dwHashTableNumber
);
ERR
(
"not right hash table number (%
d) expected %
d
\n
"
,
pHashEntry
->
dwHashTableNumber
,
dwHashTableNumber
);
break
;
break
;
}
}
/* make sure that it is in fact a hash entry */
/* make sure that it is in fact a hash entry */
...
@@ -1335,7 +1335,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExA(
...
@@ -1335,7 +1335,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExA(
LPVOID
lpReserved
,
LPVOID
lpReserved
,
DWORD
dwFlags
)
DWORD
dwFlags
)
{
{
TRACE
(
"(%s, %p, %p, %p, %p, %p, %
l
x)
\n
"
,
TRACE
(
"(%s, %p, %p, %p, %p, %p, %x)
\n
"
,
debugstr_a
(
lpszUrl
),
debugstr_a
(
lpszUrl
),
lpCacheEntryInfo
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufSize
,
lpdwCacheEntryInfoBufSize
,
...
@@ -1353,7 +1353,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExA(
...
@@ -1353,7 +1353,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExA(
return
FALSE
;
return
FALSE
;
}
}
if
(
dwFlags
!=
0
)
if
(
dwFlags
!=
0
)
FIXME
(
"Undocumented flag(s): %
l
x
\n
"
,
dwFlags
);
FIXME
(
"Undocumented flag(s): %x
\n
"
,
dwFlags
);
return
GetUrlCacheEntryInfoA
(
lpszUrl
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufSize
);
return
GetUrlCacheEntryInfoA
(
lpszUrl
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufSize
);
}
}
...
@@ -1519,7 +1519,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExW(
...
@@ -1519,7 +1519,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExW(
LPVOID
lpReserved
,
LPVOID
lpReserved
,
DWORD
dwFlags
)
DWORD
dwFlags
)
{
{
TRACE
(
"(%s, %p, %p, %p, %p, %p, %
l
x)
\n
"
,
TRACE
(
"(%s, %p, %p, %p, %p, %p, %x)
\n
"
,
debugstr_w
(
lpszUrl
),
debugstr_w
(
lpszUrl
),
lpCacheEntryInfo
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufSize
,
lpdwCacheEntryInfoBufSize
,
...
@@ -1537,7 +1537,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExW(
...
@@ -1537,7 +1537,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExW(
return
FALSE
;
return
FALSE
;
}
}
if
(
dwFlags
!=
0
)
if
(
dwFlags
!=
0
)
FIXME
(
"Undocumented flag(s): %
l
x
\n
"
,
dwFlags
);
FIXME
(
"Undocumented flag(s): %x
\n
"
,
dwFlags
);
return
GetUrlCacheEntryInfoW
(
lpszUrl
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufSize
);
return
GetUrlCacheEntryInfoW
(
lpszUrl
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufSize
);
}
}
...
@@ -1553,7 +1553,7 @@ BOOL WINAPI SetUrlCacheEntryInfoA(
...
@@ -1553,7 +1553,7 @@ BOOL WINAPI SetUrlCacheEntryInfoA(
CACHEFILE_ENTRY
*
pEntry
;
CACHEFILE_ENTRY
*
pEntry
;
URLCACHECONTAINER
*
pContainer
;
URLCACHECONTAINER
*
pContainer
;
TRACE
(
"(%s, %p, 0x%08
l
x)
\n
"
,
debugstr_a
(
lpszUrlName
),
lpCacheEntryInfo
,
dwFieldControl
);
TRACE
(
"(%s, %p, 0x%08x)
\n
"
,
debugstr_a
(
lpszUrlName
),
lpCacheEntryInfo
,
dwFieldControl
);
if
(
!
URLCacheContainers_FindContainerA
(
lpszUrlName
,
&
pContainer
))
if
(
!
URLCacheContainers_FindContainerA
(
lpszUrlName
,
&
pContainer
))
return
FALSE
;
return
FALSE
;
...
@@ -1601,7 +1601,7 @@ BOOL WINAPI SetUrlCacheEntryInfoW(LPCWSTR lpszUrl, LPINTERNET_CACHE_ENTRY_INFOW
...
@@ -1601,7 +1601,7 @@ BOOL WINAPI SetUrlCacheEntryInfoW(LPCWSTR lpszUrl, LPINTERNET_CACHE_ENTRY_INFOW
LPSTR
lpszUrlA
;
LPSTR
lpszUrlA
;
int
url_len
;
int
url_len
;
TRACE
(
"(%s, %p, 0x%08
l
x)
\n
"
,
debugstr_w
(
lpszUrl
),
lpCacheEntryInfo
,
dwFieldControl
);
TRACE
(
"(%s, %p, 0x%08x)
\n
"
,
debugstr_w
(
lpszUrl
),
lpCacheEntryInfo
,
dwFieldControl
);
url_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszUrl
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
url_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszUrl
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
lpszUrlA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
url_len
*
sizeof
(
CHAR
));
lpszUrlA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
url_len
*
sizeof
(
CHAR
));
...
@@ -1674,7 +1674,7 @@ BOOL WINAPI RetrieveUrlCacheEntryFileA(
...
@@ -1674,7 +1674,7 @@ BOOL WINAPI RetrieveUrlCacheEntryFileA(
URL_CACHEFILE_ENTRY
*
pUrlEntry
;
URL_CACHEFILE_ENTRY
*
pUrlEntry
;
URLCACHECONTAINER
*
pContainer
;
URLCACHECONTAINER
*
pContainer
;
TRACE
(
"(%s, %p, %p, 0x%08
l
x)
\n
"
,
TRACE
(
"(%s, %p, %p, 0x%08x)
\n
"
,
debugstr_a
(
lpszUrlName
),
debugstr_a
(
lpszUrlName
),
lpCacheEntryInfo
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
lpdwCacheEntryInfoBufferSize
,
...
@@ -1736,7 +1736,7 @@ BOOL WINAPI RetrieveUrlCacheEntryFileW(
...
@@ -1736,7 +1736,7 @@ BOOL WINAPI RetrieveUrlCacheEntryFileW(
IN
DWORD
dwReserved
IN
DWORD
dwReserved
)
)
{
{
TRACE
(
"(%s, %p, %p, 0x%08
l
x)
\n
"
,
TRACE
(
"(%s, %p, %p, 0x%08x)
\n
"
,
debugstr_w
(
lpszUrlName
),
debugstr_w
(
lpszUrlName
),
lpCacheEntryInfo
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
lpdwCacheEntryInfoBufferSize
,
...
@@ -1759,7 +1759,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(
...
@@ -1759,7 +1759,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(
URL_CACHEFILE_ENTRY
*
pUrlEntry
;
URL_CACHEFILE_ENTRY
*
pUrlEntry
;
URLCACHECONTAINER
*
pContainer
;
URLCACHECONTAINER
*
pContainer
;
TRACE
(
"(%s, 0x%08
l
x)
\n
"
,
debugstr_a
(
lpszUrlName
),
dwReserved
);
TRACE
(
"(%s, 0x%08x)
\n
"
,
debugstr_a
(
lpszUrlName
),
dwReserved
);
if
(
dwReserved
)
if
(
dwReserved
)
{
{
...
@@ -1814,7 +1814,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(
...
@@ -1814,7 +1814,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(
*/
*/
BOOL
WINAPI
UnlockUrlCacheEntryFileW
(
LPCWSTR
lpszUrlName
,
DWORD
dwReserved
)
BOOL
WINAPI
UnlockUrlCacheEntryFileW
(
LPCWSTR
lpszUrlName
,
DWORD
dwReserved
)
{
{
FIXME
(
"(%s, 0x%08
l
x)
\n
"
,
debugstr_w
(
lpszUrlName
),
dwReserved
);
FIXME
(
"(%s, 0x%08x)
\n
"
,
debugstr_w
(
lpszUrlName
),
dwReserved
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -1900,7 +1900,7 @@ BOOL WINAPI CreateUrlCacheEntryW(
...
@@ -1900,7 +1900,7 @@ BOOL WINAPI CreateUrlCacheEntryW(
int
count
;
int
count
;
static
const
WCHAR
szWWW
[]
=
{
'w'
,
'w'
,
'w'
,
0
};
static
const
WCHAR
szWWW
[]
=
{
'w'
,
'w'
,
'w'
,
0
};
TRACE
(
"(%s, 0x%08
lx, %s, %p, 0x%08l
x)
\n
"
,
TRACE
(
"(%s, 0x%08
x, %s, %p, 0x%08
x)
\n
"
,
debugstr_w
(
lpszUrlName
),
debugstr_w
(
lpszUrlName
),
dwExpectedFileSize
,
dwExpectedFileSize
,
debugstr_w
(
lpszFileExtension
),
debugstr_w
(
lpszFileExtension
),
...
@@ -2047,7 +2047,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
...
@@ -2047,7 +2047,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
char
achUrl
[
MAX_PATH
];
char
achUrl
[
MAX_PATH
];
char
*
pchLocalFileName
=
0
;
char
*
pchLocalFileName
=
0
;
TRACE
(
"(%s, %s, ..., ..., %
lx, %p, %l
d, %s, %s)
\n
"
,
TRACE
(
"(%s, %s, ..., ..., %
x, %p, %
d, %s, %s)
\n
"
,
debugstr_w
(
lpszUrlName
),
debugstr_w
(
lpszUrlName
),
debugstr_w
(
lpszLocalFileName
),
debugstr_w
(
lpszLocalFileName
),
CacheEntryType
,
CacheEntryType
,
...
@@ -2066,7 +2066,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
...
@@ -2066,7 +2066,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
hFile
=
CreateFileW
(
lpszLocalFileName
,
FILE_READ_ATTRIBUTES
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
hFile
=
CreateFileW
(
lpszLocalFileName
,
FILE_READ_ATTRIBUTES
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
hFile
==
INVALID_HANDLE_VALUE
)
if
(
hFile
==
INVALID_HANDLE_VALUE
)
{
{
ERR
(
"couldn't open file %s (error is %
l
d)
\n
"
,
debugstr_w
(
lpszLocalFileName
),
GetLastError
());
ERR
(
"couldn't open file %s (error is %d)
\n
"
,
debugstr_w
(
lpszLocalFileName
),
GetLastError
());
return
FALSE
;
return
FALSE
;
}
}
...
@@ -2074,7 +2074,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
...
@@ -2074,7 +2074,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
dwFileSizeLow
=
GetFileSize
(
hFile
,
&
dwFileSizeHigh
);
dwFileSizeLow
=
GetFileSize
(
hFile
,
&
dwFileSizeHigh
);
if
((
dwFileSizeLow
==
INVALID_FILE_SIZE
)
&&
(
GetLastError
()
!=
NO_ERROR
))
if
((
dwFileSizeLow
==
INVALID_FILE_SIZE
)
&&
(
GetLastError
()
!=
NO_ERROR
))
{
{
ERR
(
"couldn't get file size (error is %
l
d)
\n
"
,
GetLastError
());
ERR
(
"couldn't get file size (error is %d)
\n
"
,
GetLastError
());
CloseHandle
(
hFile
);
CloseHandle
(
hFile
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -2243,7 +2243,7 @@ BOOL WINAPI CommitUrlCacheEntryA(
...
@@ -2243,7 +2243,7 @@ BOOL WINAPI CommitUrlCacheEntryA(
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
DWORD
dwError
=
0
;
DWORD
dwError
=
0
;
TRACE
(
"(%s, %s, ..., ..., %
lx, %p, %l
d, %s, %s)
\n
"
,
TRACE
(
"(%s, %s, ..., ..., %
x, %p, %
d, %s, %s)
\n
"
,
debugstr_a
(
lpszUrlName
),
debugstr_a
(
lpszUrlName
),
debugstr_a
(
lpszLocalFileName
),
debugstr_a
(
lpszLocalFileName
),
CacheEntryType
,
CacheEntryType
,
...
@@ -2321,7 +2321,7 @@ BOOL WINAPI CommitUrlCacheEntryW(
...
@@ -2321,7 +2321,7 @@ BOOL WINAPI CommitUrlCacheEntryW(
DWORD
len
=
0
;
DWORD
len
=
0
;
CHAR
*
header_info
=
NULL
;
CHAR
*
header_info
=
NULL
;
TRACE
(
"(%s, %s, ..., ..., %
lx, %p, %l
d, %s, %s)
\n
"
,
TRACE
(
"(%s, %s, ..., ..., %
x, %p, %
d, %s, %s)
\n
"
,
debugstr_w
(
lpszUrlName
),
debugstr_w
(
lpszUrlName
),
debugstr_w
(
lpszLocalFileName
),
debugstr_w
(
lpszLocalFileName
),
CacheEntryType
,
CacheEntryType
,
...
@@ -2409,7 +2409,7 @@ HANDLE WINAPI RetrieveUrlCacheEntryStreamA(
...
@@ -2409,7 +2409,7 @@ HANDLE WINAPI RetrieveUrlCacheEntryStreamA(
STREAM_HANDLE
*
pStream
;
STREAM_HANDLE
*
pStream
;
HANDLE
hFile
;
HANDLE
hFile
;
TRACE
(
"(%s, %p, %p, %x, 0x%08
l
x)
\n
"
,
debugstr_a
(
lpszUrlName
),
lpCacheEntryInfo
,
TRACE
(
"(%s, %p, %p, %x, 0x%08x)
\n
"
,
debugstr_a
(
lpszUrlName
),
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
fRandomRead
,
dwReserved
);
lpdwCacheEntryInfoBufferSize
,
fRandomRead
,
dwReserved
);
if
(
!
RetrieveUrlCacheEntryFileA
(
lpszUrlName
,
if
(
!
RetrieveUrlCacheEntryFileA
(
lpszUrlName
,
...
@@ -2456,7 +2456,7 @@ HANDLE WINAPI RetrieveUrlCacheEntryStreamW(
...
@@ -2456,7 +2456,7 @@ HANDLE WINAPI RetrieveUrlCacheEntryStreamW(
IN
DWORD
dwReserved
IN
DWORD
dwReserved
)
)
{
{
FIXME
(
"(%s, %p, %p, %x, 0x%08
l
x)
\n
"
,
debugstr_w
(
lpszUrlName
),
lpCacheEntryInfo
,
FIXME
(
"(%s, %p, %p, %x, 0x%08x)
\n
"
,
debugstr_w
(
lpszUrlName
),
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
fRandomRead
,
dwReserved
);
lpdwCacheEntryInfoBufferSize
,
fRandomRead
,
dwReserved
);
return
NULL
;
return
NULL
;
}
}
...
@@ -2548,13 +2548,13 @@ BOOL WINAPI DeleteUrlCacheEntryW(LPCWSTR lpszUrlName)
...
@@ -2548,13 +2548,13 @@ BOOL WINAPI DeleteUrlCacheEntryW(LPCWSTR lpszUrlName)
BOOL
WINAPI
DeleteUrlCacheContainerA
(
DWORD
d1
,
DWORD
d2
)
BOOL
WINAPI
DeleteUrlCacheContainerA
(
DWORD
d1
,
DWORD
d2
)
{
{
FIXME
(
"(0x%08
lx, 0x%08l
x) stub
\n
"
,
d1
,
d2
);
FIXME
(
"(0x%08
x, 0x%08
x) stub
\n
"
,
d1
,
d2
);
return
TRUE
;
return
TRUE
;
}
}
BOOL
WINAPI
DeleteUrlCacheContainerW
(
DWORD
d1
,
DWORD
d2
)
BOOL
WINAPI
DeleteUrlCacheContainerW
(
DWORD
d1
,
DWORD
d2
)
{
{
FIXME
(
"(0x%08
lx, 0x%08l
x) stub
\n
"
,
d1
,
d2
);
FIXME
(
"(0x%08
x, 0x%08
x) stub
\n
"
,
d1
,
d2
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -2564,7 +2564,7 @@ BOOL WINAPI DeleteUrlCacheContainerW(DWORD d1, DWORD d2)
...
@@ -2564,7 +2564,7 @@ BOOL WINAPI DeleteUrlCacheContainerW(DWORD d1, DWORD d2)
BOOL
WINAPI
CreateUrlCacheContainerA
(
DWORD
d1
,
DWORD
d2
,
DWORD
d3
,
DWORD
d4
,
BOOL
WINAPI
CreateUrlCacheContainerA
(
DWORD
d1
,
DWORD
d2
,
DWORD
d3
,
DWORD
d4
,
DWORD
d5
,
DWORD
d6
,
DWORD
d7
,
DWORD
d8
)
DWORD
d5
,
DWORD
d6
,
DWORD
d7
,
DWORD
d8
)
{
{
FIXME
(
"(0x%08
lx, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08l
x) stub
\n
"
,
FIXME
(
"(0x%08
x, 0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08
x) stub
\n
"
,
d1
,
d2
,
d3
,
d4
,
d5
,
d6
,
d7
,
d8
);
d1
,
d2
,
d3
,
d4
,
d5
,
d6
,
d7
,
d8
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -2575,7 +2575,7 @@ BOOL WINAPI CreateUrlCacheContainerA(DWORD d1, DWORD d2, DWORD d3, DWORD d4,
...
@@ -2575,7 +2575,7 @@ BOOL WINAPI CreateUrlCacheContainerA(DWORD d1, DWORD d2, DWORD d3, DWORD d4,
BOOL
WINAPI
CreateUrlCacheContainerW
(
DWORD
d1
,
DWORD
d2
,
DWORD
d3
,
DWORD
d4
,
BOOL
WINAPI
CreateUrlCacheContainerW
(
DWORD
d1
,
DWORD
d2
,
DWORD
d3
,
DWORD
d4
,
DWORD
d5
,
DWORD
d6
,
DWORD
d7
,
DWORD
d8
)
DWORD
d5
,
DWORD
d6
,
DWORD
d7
,
DWORD
d8
)
{
{
FIXME
(
"(0x%08
lx, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08l
x) stub
\n
"
,
FIXME
(
"(0x%08
x, 0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08
x) stub
\n
"
,
d1
,
d2
,
d3
,
d4
,
d5
,
d6
,
d7
,
d8
);
d1
,
d2
,
d3
,
d4
,
d5
,
d6
,
d7
,
d8
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -2594,7 +2594,7 @@ BOOL WINAPI FindCloseUrlCache(HANDLE hEnumHandle)
...
@@ -2594,7 +2594,7 @@ BOOL WINAPI FindCloseUrlCache(HANDLE hEnumHandle)
*/
*/
HANDLE
WINAPI
FindFirstUrlCacheContainerA
(
LPVOID
p1
,
LPVOID
p2
,
LPVOID
p3
,
DWORD
d1
)
HANDLE
WINAPI
FindFirstUrlCacheContainerA
(
LPVOID
p1
,
LPVOID
p2
,
LPVOID
p3
,
DWORD
d1
)
{
{
FIXME
(
"(%p, %p, %p, 0x%08
l
x) stub
\n
"
,
p1
,
p2
,
p3
,
d1
);
FIXME
(
"(%p, %p, %p, 0x%08x) stub
\n
"
,
p1
,
p2
,
p3
,
d1
);
return
NULL
;
return
NULL
;
}
}
...
@@ -2603,7 +2603,7 @@ HANDLE WINAPI FindFirstUrlCacheContainerA( LPVOID p1, LPVOID p2, LPVOID p3, DWOR
...
@@ -2603,7 +2603,7 @@ HANDLE WINAPI FindFirstUrlCacheContainerA( LPVOID p1, LPVOID p2, LPVOID p3, DWOR
*/
*/
HANDLE
WINAPI
FindFirstUrlCacheContainerW
(
LPVOID
p1
,
LPVOID
p2
,
LPVOID
p3
,
DWORD
d1
)
HANDLE
WINAPI
FindFirstUrlCacheContainerW
(
LPVOID
p1
,
LPVOID
p2
,
LPVOID
p3
,
DWORD
d1
)
{
{
FIXME
(
"(%p, %p, %p, 0x%08
l
x) stub
\n
"
,
p1
,
p2
,
p3
,
d1
);
FIXME
(
"(%p, %p, %p, 0x%08x) stub
\n
"
,
p1
,
p2
,
p3
,
d1
);
return
NULL
;
return
NULL
;
}
}
...
@@ -2637,7 +2637,7 @@ HANDLE WINAPI FindFirstUrlCacheEntryExA(
...
@@ -2637,7 +2637,7 @@ HANDLE WINAPI FindFirstUrlCacheEntryExA(
LPVOID
lpReserved3
LPVOID
lpReserved3
)
)
{
{
FIXME
(
"(%s, 0x%08
lx, 0x%08lx, 0x%08lx%08l
x, %p, %p, %p, %p, %p) stub
\n
"
,
debugstr_a
(
lpszUrlSearchPattern
),
FIXME
(
"(%s, 0x%08
x, 0x%08x, 0x%08x%08
x, %p, %p, %p, %p, %p) stub
\n
"
,
debugstr_a
(
lpszUrlSearchPattern
),
dwFlags
,
dwFilter
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
lpFirstCacheEntryInfo
,
dwFlags
,
dwFilter
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
lpFirstCacheEntryInfo
,
lpdwFirstCacheEntryInfoBufferSize
,
lpReserved
,
pcbReserved2
,
lpReserved3
);
lpdwFirstCacheEntryInfoBufferSize
,
lpReserved
,
pcbReserved2
,
lpReserved3
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
...
@@ -2656,7 +2656,7 @@ HANDLE WINAPI FindFirstUrlCacheEntryExW(
...
@@ -2656,7 +2656,7 @@ HANDLE WINAPI FindFirstUrlCacheEntryExW(
LPVOID
lpReserved3
LPVOID
lpReserved3
)
)
{
{
FIXME
(
"(%s, 0x%08
lx, 0x%08lx, 0x%08lx%08l
x, %p, %p, %p, %p, %p) stub
\n
"
,
debugstr_w
(
lpszUrlSearchPattern
),
FIXME
(
"(%s, 0x%08
x, 0x%08x, 0x%08x%08
x, %p, %p, %p, %p, %p) stub
\n
"
,
debugstr_w
(
lpszUrlSearchPattern
),
dwFlags
,
dwFilter
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
lpFirstCacheEntryInfo
,
dwFlags
,
dwFilter
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
lpFirstCacheEntryInfo
,
lpdwFirstCacheEntryInfoBufferSize
,
lpReserved
,
pcbReserved2
,
lpReserved3
);
lpdwFirstCacheEntryInfoBufferSize
,
lpReserved
,
pcbReserved2
,
lpReserved3
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
...
@@ -2689,7 +2689,7 @@ INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryW(LPCWSTR lpszUrlSearchPattern,
...
@@ -2689,7 +2689,7 @@ INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryW(LPCWSTR lpszUrlSearchPattern,
HANDLE
WINAPI
FindFirstUrlCacheGroup
(
DWORD
dwFlags
,
DWORD
dwFilter
,
LPVOID
lpSearchCondition
,
HANDLE
WINAPI
FindFirstUrlCacheGroup
(
DWORD
dwFlags
,
DWORD
dwFilter
,
LPVOID
lpSearchCondition
,
DWORD
dwSearchCondition
,
GROUPID
*
lpGroupId
,
LPVOID
lpReserved
)
DWORD
dwSearchCondition
,
GROUPID
*
lpGroupId
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(0x%08
lx, 0x%08lx, %p, 0x%08l
x, %p, %p) stub
\n
"
,
dwFlags
,
dwFilter
,
lpSearchCondition
,
FIXME
(
"(0x%08
x, 0x%08x, %p, 0x%08
x, %p, %p) stub
\n
"
,
dwFlags
,
dwFilter
,
lpSearchCondition
,
dwSearchCondition
,
lpGroupId
,
lpReserved
);
dwSearchCondition
,
lpGroupId
,
lpReserved
);
return
NULL
;
return
NULL
;
}
}
...
@@ -2754,7 +2754,7 @@ BOOL WINAPI FindNextUrlCacheGroup( HANDLE hFind, GROUPID* lpGroupId, LPVOID lpRe
...
@@ -2754,7 +2754,7 @@ BOOL WINAPI FindNextUrlCacheGroup( HANDLE hFind, GROUPID* lpGroupId, LPVOID lpRe
*/
*/
INTERNETAPI
GROUPID
WINAPI
CreateUrlCacheGroup
(
DWORD
dwFlags
,
LPVOID
lpReserved
)
INTERNETAPI
GROUPID
WINAPI
CreateUrlCacheGroup
(
DWORD
dwFlags
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(0x%08
l
x, %p): stub
\n
"
,
dwFlags
,
lpReserved
);
FIXME
(
"(0x%08x, %p): stub
\n
"
,
dwFlags
,
lpReserved
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -2764,7 +2764,7 @@ INTERNETAPI GROUPID WINAPI CreateUrlCacheGroup(DWORD dwFlags, LPVOID lpReserved)
...
@@ -2764,7 +2764,7 @@ INTERNETAPI GROUPID WINAPI CreateUrlCacheGroup(DWORD dwFlags, LPVOID lpReserved)
*/
*/
BOOL
WINAPI
DeleteUrlCacheGroup
(
GROUPID
GroupId
,
DWORD
dwFlags
,
LPVOID
lpReserved
)
BOOL
WINAPI
DeleteUrlCacheGroup
(
GROUPID
GroupId
,
DWORD
dwFlags
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(0x%08
lx%08lx, 0x%08l
x, %p) stub
\n
"
,
FIXME
(
"(0x%08
x%08x, 0x%08
x, %p) stub
\n
"
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
dwFlags
,
lpReserved
);
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
dwFlags
,
lpReserved
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -2777,7 +2777,7 @@ BOOL WINAPI SetUrlCacheEntryGroupA(LPCSTR lpszUrlName, DWORD dwFlags,
...
@@ -2777,7 +2777,7 @@ BOOL WINAPI SetUrlCacheEntryGroupA(LPCSTR lpszUrlName, DWORD dwFlags,
GROUPID
GroupId
,
LPBYTE
pbGroupAttributes
,
DWORD
cbGroupAttributes
,
GROUPID
GroupId
,
LPBYTE
pbGroupAttributes
,
DWORD
cbGroupAttributes
,
LPVOID
lpReserved
)
LPVOID
lpReserved
)
{
{
FIXME
(
"(%s, 0x%08
lx, 0x%08lx%08lx, %p, 0x%08l
x, %p) stub
\n
"
,
FIXME
(
"(%s, 0x%08
x, 0x%08x%08x, %p, 0x%08
x, %p) stub
\n
"
,
debugstr_a
(
lpszUrlName
),
dwFlags
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
debugstr_a
(
lpszUrlName
),
dwFlags
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
pbGroupAttributes
,
cbGroupAttributes
,
lpReserved
);
pbGroupAttributes
,
cbGroupAttributes
,
lpReserved
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
...
@@ -2792,7 +2792,7 @@ BOOL WINAPI SetUrlCacheEntryGroupW(LPCWSTR lpszUrlName, DWORD dwFlags,
...
@@ -2792,7 +2792,7 @@ BOOL WINAPI SetUrlCacheEntryGroupW(LPCWSTR lpszUrlName, DWORD dwFlags,
GROUPID
GroupId
,
LPBYTE
pbGroupAttributes
,
DWORD
cbGroupAttributes
,
GROUPID
GroupId
,
LPBYTE
pbGroupAttributes
,
DWORD
cbGroupAttributes
,
LPVOID
lpReserved
)
LPVOID
lpReserved
)
{
{
FIXME
(
"(%s, 0x%08
lx, 0x%08lx%08lx, %p, 0x%08l
x, %p) stub
\n
"
,
FIXME
(
"(%s, 0x%08
x, 0x%08x%08x, %p, 0x%08
x, %p) stub
\n
"
,
debugstr_w
(
lpszUrlName
),
dwFlags
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
debugstr_w
(
lpszUrlName
),
dwFlags
,
(
ULONG
)(
GroupId
>>
32
),
(
ULONG
)
GroupId
,
pbGroupAttributes
,
cbGroupAttributes
,
lpReserved
);
pbGroupAttributes
,
cbGroupAttributes
,
lpReserved
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
...
@@ -2804,7 +2804,7 @@ BOOL WINAPI SetUrlCacheEntryGroupW(LPCWSTR lpszUrlName, DWORD dwFlags,
...
@@ -2804,7 +2804,7 @@ BOOL WINAPI SetUrlCacheEntryGroupW(LPCWSTR lpszUrlName, DWORD dwFlags,
*/
*/
BOOL
WINAPI
GetUrlCacheConfigInfoW
(
LPDWORD
CacheInfo
,
LPDWORD
size
,
DWORD
bitmask
)
BOOL
WINAPI
GetUrlCacheConfigInfoW
(
LPDWORD
CacheInfo
,
LPDWORD
size
,
DWORD
bitmask
)
{
{
FIXME
(
"(%p, %p, %
l
x)
\n
"
,
CacheInfo
,
size
,
bitmask
);
FIXME
(
"(%p, %p, %x)
\n
"
,
CacheInfo
,
size
,
bitmask
);
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -2816,7 +2816,7 @@ BOOL WINAPI GetUrlCacheConfigInfoW(LPDWORD CacheInfo, LPDWORD size, DWORD bitmas
...
@@ -2816,7 +2816,7 @@ BOOL WINAPI GetUrlCacheConfigInfoW(LPDWORD CacheInfo, LPDWORD size, DWORD bitmas
*/
*/
BOOL
WINAPI
GetUrlCacheConfigInfoA
(
LPDWORD
CacheInfo
,
LPDWORD
size
,
DWORD
bitmask
)
BOOL
WINAPI
GetUrlCacheConfigInfoA
(
LPDWORD
CacheInfo
,
LPDWORD
size
,
DWORD
bitmask
)
{
{
FIXME
(
"(%p, %p, %
l
x)
\n
"
,
CacheInfo
,
size
,
bitmask
);
FIXME
(
"(%p, %p, %x)
\n
"
,
CacheInfo
,
size
,
bitmask
);
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -2825,7 +2825,7 @@ BOOL WINAPI GetUrlCacheGroupAttributeA( GROUPID gid, DWORD dwFlags, DWORD dwAttr
...
@@ -2825,7 +2825,7 @@ BOOL WINAPI GetUrlCacheGroupAttributeA( GROUPID gid, DWORD dwFlags, DWORD dwAttr
LPINTERNET_CACHE_GROUP_INFOA
lpGroupInfo
,
LPINTERNET_CACHE_GROUP_INFOA
lpGroupInfo
,
LPDWORD
lpdwGroupInfo
,
LPVOID
lpReserved
)
LPDWORD
lpdwGroupInfo
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(0x%08
lx%08lx, 0x%08lx, 0x%08l
x, %p, %p, %p) stub
\n
"
,
FIXME
(
"(0x%08
x%08x, 0x%08x, 0x%08
x, %p, %p, %p) stub
\n
"
,
(
ULONG
)(
gid
>>
32
),
(
ULONG
)
gid
,
dwFlags
,
dwAttributes
,
lpGroupInfo
,
(
ULONG
)(
gid
>>
32
),
(
ULONG
)
gid
,
dwFlags
,
dwAttributes
,
lpGroupInfo
,
lpdwGroupInfo
,
lpReserved
);
lpdwGroupInfo
,
lpReserved
);
return
FALSE
;
return
FALSE
;
...
@@ -2835,7 +2835,7 @@ BOOL WINAPI GetUrlCacheGroupAttributeW( GROUPID gid, DWORD dwFlags, DWORD dwAttr
...
@@ -2835,7 +2835,7 @@ BOOL WINAPI GetUrlCacheGroupAttributeW( GROUPID gid, DWORD dwFlags, DWORD dwAttr
LPINTERNET_CACHE_GROUP_INFOW
lpGroupInfo
,
LPINTERNET_CACHE_GROUP_INFOW
lpGroupInfo
,
LPDWORD
lpdwGroupInfo
,
LPVOID
lpReserved
)
LPDWORD
lpdwGroupInfo
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(0x%08
lx%08lx, 0x%08lx, 0x%08l
x, %p, %p, %p) stub
\n
"
,
FIXME
(
"(0x%08
x%08x, 0x%08x, 0x%08
x, %p, %p, %p) stub
\n
"
,
(
ULONG
)(
gid
>>
32
),
(
ULONG
)
gid
,
dwFlags
,
dwAttributes
,
lpGroupInfo
,
(
ULONG
)(
gid
>>
32
),
(
ULONG
)
gid
,
dwFlags
,
dwAttributes
,
lpGroupInfo
,
lpdwGroupInfo
,
lpReserved
);
lpdwGroupInfo
,
lpReserved
);
return
FALSE
;
return
FALSE
;
...
@@ -2844,7 +2844,7 @@ BOOL WINAPI GetUrlCacheGroupAttributeW( GROUPID gid, DWORD dwFlags, DWORD dwAttr
...
@@ -2844,7 +2844,7 @@ BOOL WINAPI GetUrlCacheGroupAttributeW( GROUPID gid, DWORD dwFlags, DWORD dwAttr
BOOL
WINAPI
SetUrlCacheGroupAttributeA
(
GROUPID
gid
,
DWORD
dwFlags
,
DWORD
dwAttributes
,
BOOL
WINAPI
SetUrlCacheGroupAttributeA
(
GROUPID
gid
,
DWORD
dwFlags
,
DWORD
dwAttributes
,
LPINTERNET_CACHE_GROUP_INFOA
lpGroupInfo
,
LPVOID
lpReserved
)
LPINTERNET_CACHE_GROUP_INFOA
lpGroupInfo
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(0x%08
lx%08lx, 0x%08lx, 0x%08l
x, %p, %p) stub
\n
"
,
FIXME
(
"(0x%08
x%08x, 0x%08x, 0x%08
x, %p, %p) stub
\n
"
,
(
ULONG
)(
gid
>>
32
),
(
ULONG
)
gid
,
dwFlags
,
dwAttributes
,
lpGroupInfo
,
lpReserved
);
(
ULONG
)(
gid
>>
32
),
(
ULONG
)
gid
,
dwFlags
,
dwAttributes
,
lpGroupInfo
,
lpReserved
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -2852,20 +2852,20 @@ BOOL WINAPI SetUrlCacheGroupAttributeA( GROUPID gid, DWORD dwFlags, DWORD dwAttr
...
@@ -2852,20 +2852,20 @@ BOOL WINAPI SetUrlCacheGroupAttributeA( GROUPID gid, DWORD dwFlags, DWORD dwAttr
BOOL
WINAPI
SetUrlCacheGroupAttributeW
(
GROUPID
gid
,
DWORD
dwFlags
,
DWORD
dwAttributes
,
BOOL
WINAPI
SetUrlCacheGroupAttributeW
(
GROUPID
gid
,
DWORD
dwFlags
,
DWORD
dwAttributes
,
LPINTERNET_CACHE_GROUP_INFOW
lpGroupInfo
,
LPVOID
lpReserved
)
LPINTERNET_CACHE_GROUP_INFOW
lpGroupInfo
,
LPVOID
lpReserved
)
{
{
FIXME
(
"(0x%08
lx%08lx, 0x%08lx, 0x%08l
x, %p, %p) stub
\n
"
,
FIXME
(
"(0x%08
x%08x, 0x%08x, 0x%08
x, %p, %p) stub
\n
"
,
(
ULONG
)(
gid
>>
32
),
(
ULONG
)
gid
,
dwFlags
,
dwAttributes
,
lpGroupInfo
,
lpReserved
);
(
ULONG
)(
gid
>>
32
),
(
ULONG
)
gid
,
dwFlags
,
dwAttributes
,
lpGroupInfo
,
lpReserved
);
return
TRUE
;
return
TRUE
;
}
}
BOOL
WINAPI
SetUrlCacheConfigInfoA
(
LPDWORD
lpCacheConfigInfo
,
DWORD
dwFieldControl
)
BOOL
WINAPI
SetUrlCacheConfigInfoA
(
LPDWORD
lpCacheConfigInfo
,
DWORD
dwFieldControl
)
{
{
FIXME
(
"(%p, 0x%08
l
x) stub
\n
"
,
lpCacheConfigInfo
,
dwFieldControl
);
FIXME
(
"(%p, 0x%08x) stub
\n
"
,
lpCacheConfigInfo
,
dwFieldControl
);
return
TRUE
;
return
TRUE
;
}
}
BOOL
WINAPI
SetUrlCacheConfigInfoW
(
LPDWORD
lpCacheConfigInfo
,
DWORD
dwFieldControl
)
BOOL
WINAPI
SetUrlCacheConfigInfoW
(
LPDWORD
lpCacheConfigInfo
,
DWORD
dwFieldControl
)
{
{
FIXME
(
"(%p, 0x%08
l
x) stub
\n
"
,
lpCacheConfigInfo
,
dwFieldControl
);
FIXME
(
"(%p, 0x%08x) stub
\n
"
,
lpCacheConfigInfo
,
dwFieldControl
);
return
TRUE
;
return
TRUE
;
}
}
...
...
dlls/wininet/utility.c
View file @
cd2c4585
...
@@ -248,7 +248,7 @@ VOID INTERNET_SendCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
...
@@ -248,7 +248,7 @@ VOID INTERNET_SendCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
}
}
}
}
TRACE
(
" callback(%p) (%p (%p), %08
lx, %ld (%s), %p, %l
d)
\n
"
,
TRACE
(
" callback(%p) (%p (%p), %08
x, %d (%s), %p, %
d)
\n
"
,
hdr
->
lpfnStatusCB
,
hHttpSession
,
hdr
,
dwContext
,
dwInternetStatus
,
get_callback_name
(
dwInternetStatus
),
hdr
->
lpfnStatusCB
,
hHttpSession
,
hdr
,
dwContext
,
dwInternetStatus
,
get_callback_name
(
dwInternetStatus
),
lpvNewInfo
,
dwStatusInfoLength
);
lpvNewInfo
,
dwStatusInfoLength
);
...
@@ -269,7 +269,7 @@ VOID SendAsyncCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
...
@@ -269,7 +269,7 @@ VOID SendAsyncCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
DWORD
dwInternetStatus
,
LPVOID
lpvStatusInfo
,
DWORD
dwInternetStatus
,
LPVOID
lpvStatusInfo
,
DWORD
dwStatusInfoLength
)
DWORD
dwStatusInfoLength
)
{
{
TRACE
(
"(%p, %08
lx, %ld (%s), %p, %l
d): %sasync call with callback %p
\n
"
,
TRACE
(
"(%p, %08
x, %d (%s), %p, %
d): %sasync call with callback %p
\n
"
,
hdr
,
dwContext
,
dwInternetStatus
,
get_callback_name
(
dwInternetStatus
),
hdr
,
dwContext
,
dwInternetStatus
,
get_callback_name
(
dwInternetStatus
),
lpvStatusInfo
,
dwStatusInfoLength
,
lpvStatusInfo
,
dwStatusInfoLength
,
hdr
->
dwFlags
&
INTERNET_FLAG_ASYNC
?
""
:
"non "
,
hdr
->
dwFlags
&
INTERNET_FLAG_ASYNC
?
""
:
"non "
,
...
...
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