Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4863257e
Commit
4863257e
authored
Mar 08, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added default fallback for setting handle options and use it for INTERNET_OPTION_CALLBACK.
parent
a729027c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
21 deletions
+19
-21
ftp.c
dlls/wininet/ftp.c
+3
-3
http.c
dlls/wininet/http.c
+2
-2
internet.c
dlls/wininet/internet.c
+12
-15
internet.h
dlls/wininet/internet.h
+2
-1
No files found.
dlls/wininet/ftp.c
View file @
4863257e
...
...
@@ -1297,7 +1297,7 @@ static const object_vtbl_t FTPFILEVtbl = {
FTPFILE_Destroy
,
NULL
,
FTPFILE_QueryOption
,
NULL
,
INET_SetOption
,
FTPFILE_ReadFile
,
FTPFILE_ReadFileExA
,
FTPFILE_ReadFileExW
,
...
...
@@ -2389,7 +2389,7 @@ static const object_vtbl_t FTPSESSIONVtbl = {
FTPSESSION_Destroy
,
FTPSESSION_CloseConnection
,
FTPSESSION_QueryOption
,
NULL
,
INET_SetOption
,
NULL
,
NULL
,
NULL
,
...
...
@@ -3474,7 +3474,7 @@ static const object_vtbl_t FTPFINDNEXTVtbl = {
FTPFINDNEXT_Destroy
,
NULL
,
FTPFINDNEXT_QueryOption
,
NULL
,
INET_SetOption
,
NULL
,
NULL
,
NULL
,
...
...
dlls/wininet/http.c
View file @
4863257e
...
...
@@ -2212,7 +2212,7 @@ static DWORD HTTPREQ_SetOption(object_header_t *hdr, DWORD option, void *buffer,
return
ERROR_SUCCESS
;
}
return
ERROR_INTERNET_INVALID_OPTION
;
return
INET_SetOption
(
hdr
,
option
,
buffer
,
size
)
;
}
/* read some more data into the read buffer (the read section must be held) */
...
...
@@ -5515,7 +5515,7 @@ static DWORD HTTPSESSION_SetOption(object_header_t *hdr, DWORD option, void *buf
default:
break
;
}
return
ERROR_INTERNET_INVALID_OPTION
;
return
INET_SetOption
(
hdr
,
option
,
buffer
,
size
)
;
}
static
const
object_vtbl_t
HTTPSESSIONVtbl
=
{
...
...
dlls/wininet/internet.c
View file @
4863257e
...
...
@@ -881,7 +881,7 @@ static const object_vtbl_t APPINFOVtbl = {
APPINFO_Destroy
,
NULL
,
APPINFO_QueryOption
,
NULL
,
INET_SetOption
,
NULL
,
NULL
,
NULL
,
...
...
@@ -2529,6 +2529,16 @@ BOOL WINAPI InternetQueryOptionA(HINTERNET hInternet, DWORD dwOption,
return
res
==
ERROR_SUCCESS
;
}
DWORD
INET_SetOption
(
object_header_t
*
hdr
,
DWORD
option
,
void
*
buf
,
DWORD
size
)
{
switch
(
option
)
{
case
INTERNET_OPTION_CALLBACK
:
WARN
(
"Not settable option %u
\n
"
,
option
);
return
ERROR_INTERNET_OPTION_NOT_SETTABLE
;
}
return
ERROR_INTERNET_INVALID_OPTION
;
}
/***********************************************************************
* InternetSetOptionW (WININET.@)
...
...
@@ -2549,7 +2559,7 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
TRACE
(
"(%p %d %p %d)
\n
"
,
hInternet
,
dwOption
,
lpBuffer
,
dwBufferLength
);
lpwhh
=
(
object_header_t
*
)
get_handle_object
(
hInternet
);
if
(
lpwhh
&&
lpwhh
->
vtbl
->
SetOption
)
{
if
(
lpwhh
)
{
DWORD
res
;
res
=
lpwhh
->
vtbl
->
SetOption
(
lpwhh
,
dwOption
,
lpBuffer
,
dwBufferLength
);
...
...
@@ -2845,19 +2855,6 @@ BOOL WINAPI InternetSetOptionA(HINTERNET hInternet, DWORD dwOption,
switch
(
dwOption
)
{
case
INTERNET_OPTION_CALLBACK
:
{
object_header_t
*
lpwh
;
if
(
!
(
lpwh
=
get_handle_object
(
hInternet
)))
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
return
FALSE
;
}
WININET_Release
(
lpwh
);
INTERNET_SetLastError
(
ERROR_INTERNET_OPTION_NOT_SETTABLE
);
return
FALSE
;
}
case
INTERNET_OPTION_PROXY
:
{
LPINTERNET_PROXY_INFOA
pi
=
(
LPINTERNET_PROXY_INFOA
)
lpBuffer
;
...
...
dlls/wininet/internet.h
View file @
4863257e
...
...
@@ -486,7 +486,8 @@ object_header_t *get_handle_object( HINTERNET hinternet ) DECLSPEC_HIDDEN;
object_header_t
*
WININET_AddRef
(
object_header_t
*
info
)
DECLSPEC_HIDDEN
;
BOOL
WININET_Release
(
object_header_t
*
info
)
DECLSPEC_HIDDEN
;
DWORD
INET_QueryOption
(
object_header_t
*
,
DWORD
,
void
*
,
DWORD
*
,
BOOL
)
DECLSPEC_HIDDEN
;
DWORD
INET_QueryOption
(
object_header_t
*
,
DWORD
,
void
*
,
DWORD
*
,
BOOL
)
DECLSPEC_HIDDEN
;
DWORD
INET_SetOption
(
object_header_t
*
,
DWORD
,
void
*
,
DWORD
)
DECLSPEC_HIDDEN
;
time_t
ConvertTimeString
(
LPCWSTR
asctime
)
DECLSPEC_HIDDEN
;
...
...
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