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
cf14c0bd
Commit
cf14c0bd
authored
Aug 21, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httpapi: Implement HttpCreateHttpHandle().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2ab696d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
httpapi_main.c
dlls/httpapi/httpapi_main.c
+16
-3
httpapi.c
dlls/httpapi/tests/httpapi.c
+1
-1
No files found.
dlls/httpapi/httpapi_main.c
View file @
cf14c0bd
...
...
@@ -22,6 +22,7 @@
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
#include "http.h"
#include "wine/debug.h"
...
...
@@ -167,10 +168,22 @@ ULONG WINAPI HttpSetServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID
* NO_ERROR if function succeeds, or error code if function fails
*
*/
ULONG
WINAPI
HttpCreateHttpHandle
(
PHANDLE
handle
,
ULONG
reserved
)
ULONG
WINAPI
HttpCreateHttpHandle
(
HANDLE
*
handle
,
ULONG
reserved
)
{
FIXME
(
"(%p, %d): stub!
\n
"
,
handle
,
reserved
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
static
const
WCHAR
device_nameW
[]
=
{
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'\\'
,
'H'
,
't'
,
't'
,
'p'
,
'\\'
,
'R'
,
'e'
,
'q'
,
'Q'
,
'u'
,
'e'
,
'u'
,
'e'
,
0
};
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)};
UNICODE_STRING
string
;
IO_STATUS_BLOCK
iosb
;
TRACE
(
"handle %p, reserved %#x.
\n
"
,
handle
,
reserved
);
if
(
!
handle
)
return
ERROR_INVALID_PARAMETER
;
RtlInitUnicodeString
(
&
string
,
device_nameW
);
attr
.
ObjectName
=
&
string
;
return
RtlNtStatusToDosError
(
NtCreateFile
(
handle
,
0
,
&
attr
,
&
iosb
,
NULL
,
FILE_ATTRIBUTE_NORMAL
,
0
,
FILE_OPEN
,
FILE_NON_DIRECTORY_FILE
,
NULL
,
0
));
}
/***********************************************************************
...
...
dlls/httpapi/tests/httpapi.c
View file @
cf14c0bd
...
...
@@ -117,7 +117,7 @@ static void test_v1_server(void)
memset
(
req_buffer
,
0xcc
,
sizeof
(
req_buffer
));
ret
=
HttpCreateHttpHandle
(
NULL
,
0
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Unexpected error %u.
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Unexpected error %u.
\n
"
,
ret
);
/* Non-zero reserved parameter is accepted on XP/2k3. */
queue
=
NULL
;
...
...
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