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
0bb7b50f
Commit
0bb7b50f
authored
Jul 23, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement INTERNET_OPTION_CONNECTED_STATE.
parent
62d4adff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
internet.c
dlls/wininet/internet.c
+30
-7
No files found.
dlls/wininet/internet.c
View file @
0bb7b50f
...
...
@@ -1710,14 +1710,22 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
TRACE
(
"(%p, 0x%08lx, %p, %p)
\n
"
,
hInternet
,
dwOption
,
lpBuffer
,
lpdwBufferLength
);
lpwhh
=
(
LPWININETHANDLEHEADER
)
WININET_GetObject
(
hInternet
);
if
(
!
lpwhh
)
return
FALSE
;
switch
(
dwOption
)
{
case
INTERNET_OPTION_HANDLE_TYPE
:
{
ULONG
type
=
lpwhh
->
htype
;
ULONG
type
;
if
(
!
lpwhh
)
{
WARN
(
"Invalid hInternet handle
\n
"
);
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
type
=
lpwhh
->
htype
;
TRACE
(
"INTERNET_OPTION_HANDLE_TYPE: %ld
\n
"
,
type
);
if
(
*
lpdwBufferLength
<
sizeof
(
ULONG
))
...
...
@@ -1749,8 +1757,13 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
case
INTERNET_OPTION_URL
:
case
INTERNET_OPTION_DATAFILE_NAME
:
{
ULONG
type
=
lpwhh
->
htype
;
if
(
type
==
WH_HHTTPREQ
)
if
(
!
lpwhh
)
{
WARN
(
"Invalid hInternet handle
\n
"
);
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
lpwhh
->
htype
==
WH_HHTTPREQ
)
{
LPWININETHTTPREQW
lpreq
=
(
LPWININETHTTPREQW
)
lpwhh
;
WCHAR
url
[
1023
];
...
...
@@ -1784,7 +1797,16 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
((
HTTP_VERSION_INFO
*
)
lpBuffer
)
->
dwMajorVersion
=
1
;
((
HTTP_VERSION_INFO
*
)
lpBuffer
)
->
dwMinorVersion
=
1
;
bSuccess
=
TRUE
;
break
;
break
;
}
case
INTERNET_OPTION_CONNECTED_STATE
:
{
INTERNET_CONNECTED_INFO
*
pCi
=
(
INTERNET_CONNECTED_INFO
*
)
lpBuffer
;
FIXME
(
"INTERNET_OPTION_CONNECTED_STATE: semi-stub
\n
"
);
pCi
->
dwConnectedState
=
INTERNET_STATE_CONNECTED
;
pCi
->
dwFlags
=
0
;
bSuccess
=
TRUE
;
break
;
}
case
INTERNET_OPTION_SECURITY_FLAGS
:
FIXME
(
"INTERNET_OPTION_SECURITY_FLAGS: Stub
\n
"
);
...
...
@@ -1794,7 +1816,8 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
FIXME
(
"Stub! %ld
\n
"
,
dwOption
);
break
;
}
WININET_Release
(
lpwhh
);
if
(
lpwhh
)
WININET_Release
(
lpwhh
);
return
bSuccess
;
}
...
...
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