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
df749512
Commit
df749512
authored
Jan 28, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Moved WORKREQ_INTERNETOPENURLW out of WORKREQUEST.
parent
940a67c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
29 deletions
+24
-29
internet.c
dlls/wininet/internet.c
+24
-18
internet.h
dlls/wininet/internet.h
+0
-11
No files found.
dlls/wininet/internet.c
View file @
df749512
...
...
@@ -3497,17 +3497,25 @@ static HINTERNET INTERNET_InternetOpenUrlW(appinfo_t *hIC, LPCWSTR lpszUrl,
* RETURNS
* handle of connection or NULL on failure
*/
static
void
AsyncInternetOpenUrlProc
(
WORKREQUEST
*
workRequest
)
typedef
struct
{
task_header_t
hdr
;
WCHAR
*
url
;
WCHAR
*
headers
;
DWORD
headers_len
;
DWORD
flags
;
DWORD_PTR
context
;
}
open_url_task_t
;
static
void
AsyncInternetOpenUrlProc
(
task_header_t
*
hdr
)
{
struct
WORKREQ_INTERNETOPENURLW
const
*
req
=
&
workRequest
->
u
.
InternetOpenUrlW
;
appinfo_t
*
hIC
=
(
appinfo_t
*
)
workRequest
->
hdr
;
open_url_task_t
*
task
=
(
open_url_task_t
*
)
hdr
;
TRACE
(
"%p
\n
"
,
hIC
);
TRACE
(
"%p
\n
"
,
task
->
hdr
.
hdr
);
INTERNET_InternetOpenUrlW
(
hIC
,
req
->
lpszUrl
,
req
->
lpszHeaders
,
req
->
dwHeadersLength
,
req
->
dwFlags
,
req
->
dwC
ontext
);
heap_free
(
req
->
lpszU
rl
);
heap_free
(
req
->
lpszH
eaders
);
INTERNET_InternetOpenUrlW
(
(
appinfo_t
*
)
task
->
hdr
.
hdr
,
task
->
url
,
task
->
headers
,
task
->
headers_len
,
task
->
flags
,
task
->
c
ontext
);
heap_free
(
task
->
u
rl
);
heap_free
(
task
->
h
eaders
);
}
HINTERNET
WINAPI
InternetOpenUrlW
(
HINTERNET
hInternet
,
LPCWSTR
lpszUrl
,
...
...
@@ -3536,19 +3544,17 @@ HINTERNET WINAPI InternetOpenUrlW(HINTERNET hInternet, LPCWSTR lpszUrl,
}
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
*
task
;
struct
WORKREQ_INTERNETOPENURLW
*
req
;
open_url_task_t
*
task
;
task
=
alloc_async_task
(
&
hIC
->
hdr
,
AsyncInternetOpenUrlProc
,
sizeof
(
*
task
));
req
=
&
task
->
u
.
InternetOpenUrlW
;
req
->
lpszUrl
=
heap_strdupW
(
lpszUrl
);
req
->
lpszHeaders
=
heap_strdupW
(
lpszHeaders
);
req
->
dwHeadersLength
=
dwHeadersLength
;
req
->
dwFlags
=
dwFlags
;
req
->
dwContext
=
dwContext
;
task
->
url
=
heap_strdupW
(
lpszUrl
);
task
->
headers
=
heap_strdupW
(
lpszHeaders
);
task
->
headers_len
=
dwHeadersLength
;
task
->
flags
=
dwFlags
;
task
->
context
=
dwContext
;
INTERNET_AsyncCall
(
task
);
SetLastError
(
ERROR_IO_PENDING
);
INTERNET_AsyncCall
(
&
task
->
hdr
);
SetLastError
(
ERROR_IO_PENDING
);
}
else
{
ret
=
INTERNET_InternetOpenUrlW
(
hIC
,
lpszUrl
,
lpszHeaders
,
dwHeadersLength
,
dwFlags
,
dwContext
);
}
...
...
dlls/wininet/internet.h
View file @
df749512
...
...
@@ -441,16 +441,6 @@ struct WORKREQ_SENDCALLBACK
DWORD
dwStatusInfoLength
;
};
struct
WORKREQ_INTERNETOPENURLW
{
HINTERNET
hInternet
;
LPWSTR
lpszUrl
;
LPWSTR
lpszHeaders
;
DWORD
dwHeadersLength
;
DWORD
dwFlags
;
DWORD_PTR
dwContext
;
};
struct
WORKREQ_HTTPREADFILEEX
{
void
*
buf
;
...
...
@@ -480,7 +470,6 @@ typedef struct WORKREQ
struct
WORKREQ_FTPFINDNEXTW
FtpFindNextW
;
struct
WORKREQ_HTTPENDREQUESTW
HttpEndRequestW
;
struct
WORKREQ_SENDCALLBACK
SendCallback
;
struct
WORKREQ_INTERNETOPENURLW
InternetOpenUrlW
;
struct
WORKREQ_HTTPREADFILEEX
HttpReadFileEx
;
}
u
;
}
WORKREQUEST
,
*
LPWORKREQUEST
;
...
...
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