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
8c3ca8d8
Commit
8c3ca8d8
authored
Dec 25, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use proc instead of enum in INTERNETOPENURLW request.
parent
5dd5536a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
internet.c
dlls/wininet/internet.c
+16
-15
internet.h
dlls/wininet/internet.h
+0
-1
No files found.
dlls/wininet/internet.c
View file @
8c3ca8d8
...
...
@@ -2875,6 +2875,19 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
* RETURNS
* handle of connection or NULL on failure
*/
static
void
AsyncInternetOpenUrlProc
(
WORKREQUEST
*
workRequest
)
{
struct
WORKREQ_INTERNETOPENURLW
const
*
req
=
&
workRequest
->
u
.
InternetOpenUrlW
;
LPWININETAPPINFOW
hIC
=
(
LPWININETAPPINFOW
)
workRequest
->
hdr
;
TRACE
(
"%p
\n
"
,
hIC
);
INTERNET_InternetOpenUrlW
(
hIC
,
req
->
lpszUrl
,
req
->
lpszHeaders
,
req
->
dwHeadersLength
,
req
->
dwFlags
,
req
->
dwContext
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszUrl
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszHeaders
);
}
HINTERNET
WINAPI
InternetOpenUrlW
(
HINTERNET
hInternet
,
LPCWSTR
lpszUrl
,
LPCWSTR
lpszHeaders
,
DWORD
dwHeadersLength
,
DWORD
dwFlags
,
DWORD
dwContext
)
{
...
...
@@ -2903,8 +2916,9 @@ HINTERNET WINAPI InternetOpenUrlW(HINTERNET hInternet, LPCWSTR lpszUrl,
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
workRequest
;
struct
WORKREQ_INTERNETOPENURLW
*
req
;
workRequest
.
asyncall
=
INTERNETOPENURLW
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncInternetOpenUrlProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
hIC
->
hdr
);
req
=
&
workRequest
.
u
.
InternetOpenUrlW
;
req
->
lpszUrl
=
WININET_strdupW
(
lpszUrl
);
...
...
@@ -3363,19 +3377,6 @@ static VOID INTERNET_ExecuteWork(void)
}
break
;
case
INTERNETOPENURLW
:
{
struct
WORKREQ_INTERNETOPENURLW
*
req
=
&
workRequest
.
u
.
InternetOpenUrlW
;
LPWININETAPPINFOW
hIC
=
(
LPWININETAPPINFOW
)
workRequest
.
hdr
;
TRACE
(
"INTERNETOPENURLW %p
\n
"
,
hIC
);
INTERNET_InternetOpenUrlW
(
hIC
,
req
->
lpszUrl
,
req
->
lpszHeaders
,
req
->
dwHeadersLength
,
req
->
dwFlags
,
req
->
dwContext
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszUrl
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszHeaders
);
}
break
;
case
INTERNETREADFILEEXA
:
{
struct
WORKREQ_INTERNETREADFILEEXA
*
req
=
&
workRequest
.
u
.
InternetReadFileExA
;
...
...
dlls/wininet/internet.h
View file @
8c3ca8d8
...
...
@@ -261,7 +261,6 @@ typedef enum
FTPREMOVEDIRECTORYW
,
FTPRENAMEFILEW
,
FTPFINDNEXTW
,
INTERNETOPENURLW
,
INTERNETREADFILEEXA
,
}
ASYNC_FUNC
;
...
...
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