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
4f714df9
Commit
4f714df9
authored
Aug 22, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httpapi: Implement HttpRemoveUrl().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6bde9537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
httpapi_main.c
dlls/httpapi/httpapi_main.c
+23
-3
No files found.
dlls/httpapi/httpapi_main.c
View file @
4f714df9
...
...
@@ -218,10 +218,30 @@ ULONG WINAPI HttpAddUrl(HANDLE queue, const WCHAR *url, void *reserved)
/***********************************************************************
* HttpRemoveUrl (HTTPAPI.@)
*/
ULONG
WINAPI
HttpRemoveUrl
(
HANDLE
queue
,
const
WCHAR
*
url
)
ULONG
WINAPI
HttpRemoveUrl
(
HANDLE
queue
,
const
WCHAR
*
url
W
)
{
FIXME
(
"queue %p, url %s, stub!
\n
"
,
queue
,
debugstr_w
(
url
));
return
ERROR_CALL_NOT_IMPLEMENTED
;
ULONG
ret
=
ERROR_SUCCESS
;
OVERLAPPED
ovl
=
{};
char
*
url
;
int
len
;
TRACE
(
"queue %p, url %s.
\n
"
,
queue
,
debugstr_w
(
urlW
));
if
(
!
queue
)
return
ERROR_INVALID_PARAMETER
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
urlW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
!
(
url
=
heap_alloc
(
len
)))
return
ERROR_OUTOFMEMORY
;
WideCharToMultiByte
(
CP_ACP
,
0
,
urlW
,
-
1
,
url
,
len
,
NULL
,
NULL
);
ovl
.
hEvent
=
(
HANDLE
)((
ULONG_PTR
)
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
)
|
1
);
if
(
!
DeviceIoControl
(
queue
,
IOCTL_HTTP_REMOVE_URL
,
url
,
len
,
NULL
,
0
,
NULL
,
&
ovl
))
ret
=
GetLastError
();
CloseHandle
(
ovl
.
hEvent
);
heap_free
(
url
);
return
ret
;
}
/***********************************************************************
...
...
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