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
ad023172
Commit
ad023172
authored
Jan 05, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: lpvStatusInfo in INTERNET_STATUS_NAME_RESOLVED,
INTERNET_STATUS_CONNECTING_TO_SERVER and INTERNET_STATUS_CONNECTED_TO_SERVER should be strings, not sockaddr_in.
parent
545c4b7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
http.c
dlls/wininet/http.c
+17
-8
utility.c
dlls/wininet/utility.c
+8
-1
No files found.
dlls/wininet/http.c
View file @
ad023172
...
...
@@ -32,6 +32,9 @@
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
...
...
@@ -985,6 +988,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
static
const
WCHAR
szUrlForm
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
0
};
DWORD
len
;
LPHTTPHEADERW
Host
;
char
szaddr
[
32
];
TRACE
(
"-->
\n
"
);
...
...
@@ -1140,10 +1144,11 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
goto
lend
;
}
inet_ntop
(
lpwhs
->
socketAddress
.
sin_family
,
&
lpwhs
->
socketAddress
.
sin_addr
,
szaddr
,
sizeof
(
szaddr
));
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_NAME_RESOLVED
,
&
(
lpwhs
->
socketAddress
),
sizeof
(
struct
sockaddr_in
));
szaddr
,
strlen
(
szaddr
)
+
1
);
lend:
if
(
lpwhr
)
...
...
@@ -1932,6 +1937,7 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
LPWININETHTTPSESSIONW
lpwhs
=
(
LPWININETHTTPSESSIONW
)
lpwhr
->
hdr
.
lpwhparent
;
LPWININETAPPINFOW
hIC
=
(
LPWININETAPPINFOW
)
lpwhs
->
hdr
.
lpwhparent
;
WCHAR
path
[
2048
];
char
szaddr
[
32
];
if
(
lpszUrl
[
0
]
==
'/'
)
{
...
...
@@ -2044,10 +2050,11 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
return
FALSE
;
}
inet_ntop
(
lpwhs
->
socketAddress
.
sin_family
,
&
lpwhs
->
socketAddress
.
sin_addr
,
szaddr
,
sizeof
(
szaddr
));
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_NAME_RESOLVED
,
&
(
lpwhs
->
socketAddress
),
sizeof
(
struct
sockaddr_in
));
szaddr
,
strlen
(
szaddr
)
+
1
);
NETCON_close
(
&
lpwhr
->
netConnection
);
NETCON_init
(
&
lpwhr
->
netConnection
,
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
);
...
...
@@ -2407,6 +2414,7 @@ static BOOL HTTP_OpenConnection(LPWININETHTTPREQW lpwhr)
BOOL
bSuccess
=
FALSE
;
LPWININETHTTPSESSIONW
lpwhs
;
LPWININETAPPINFOW
hIC
=
NULL
;
char
szaddr
[
32
];
TRACE
(
"-->
\n
"
);
...
...
@@ -2420,10 +2428,12 @@ static BOOL HTTP_OpenConnection(LPWININETHTTPREQW lpwhr)
lpwhs
=
(
LPWININETHTTPSESSIONW
)
lpwhr
->
hdr
.
lpwhparent
;
hIC
=
(
LPWININETAPPINFOW
)
lpwhs
->
hdr
.
lpwhparent
;
inet_ntop
(
lpwhs
->
socketAddress
.
sin_family
,
&
lpwhs
->
socketAddress
.
sin_addr
,
szaddr
,
sizeof
(
szaddr
));
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_CONNECTING_TO_SERVER
,
&
(
lpwhs
->
socketAddress
)
,
s
izeof
(
struct
sockaddr_in
)
);
szaddr
,
s
trlen
(
szaddr
)
+
1
);
if
(
!
NETCON_create
(
&
lpwhr
->
netConnection
,
lpwhs
->
socketAddress
.
sin_family
,
SOCK_STREAM
,
0
))
...
...
@@ -2456,8 +2466,7 @@ static BOOL HTTP_OpenConnection(LPWININETHTTPREQW lpwhr)
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_CONNECTED_TO_SERVER
,
&
(
lpwhs
->
socketAddress
),
sizeof
(
struct
sockaddr_in
));
szaddr
,
strlen
(
szaddr
)
+
1
);
bSuccess
=
TRUE
;
...
...
dlls/wininet/utility.c
View file @
ad023172
...
...
@@ -232,7 +232,14 @@ VOID INTERNET_SendCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
}
lpvNewInfo
=
lpvStatusInfo
;
if
(
!
(
hdr
->
dwInternalFlags
&
INET_CALLBACKW
))
{
if
(
hdr
->
dwInternalFlags
&
INET_CALLBACKW
)
{
switch
(
dwInternetStatus
)
{
case
INTERNET_STATUS_NAME_RESOLVED
:
case
INTERNET_STATUS_CONNECTING_TO_SERVER
:
case
INTERNET_STATUS_CONNECTED_TO_SERVER
:
lpvNewInfo
=
WININET_strdup_AtoW
(
lpvStatusInfo
);
}
}
else
{
switch
(
dwInternetStatus
)
{
case
INTERNET_STATUS_RESOLVING_NAME
:
...
...
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