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
3b1d18fd
Commit
3b1d18fd
authored
Jun 24, 2020
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Implement WinHttpWebSocketQueryCloseStatus.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61ea74b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
request.c
dlls/winhttp/request.c
+31
-3
No files found.
dlls/winhttp/request.c
View file @
3b1d18fd
...
...
@@ -3642,10 +3642,38 @@ DWORD WINAPI WinHttpWebSocketClose( HINTERNET hsocket, USHORT status, void *reas
}
DWORD
WINAPI
WinHttpWebSocketQueryCloseStatus
(
HINTERNET
hsocket
,
USHORT
*
status
,
void
*
reason
,
DWORD
len
,
DWORD
*
consumed
)
DWORD
*
ret_len
)
{
FIXME
(
"%p, %p, %p, %u, %p
\n
"
,
hsocket
,
status
,
reason
,
len
,
consumed
);
return
ERROR_INVALID_PARAMETER
;
struct
socket
*
socket
;
DWORD
ret
;
TRACE
(
"%p, %p, %p, %u, %p
\n
"
,
hsocket
,
status
,
reason
,
len
,
ret_len
);
if
(
!
status
||
(
len
&&
!
reason
)
||
!
ret_len
)
return
ERROR_INVALID_PARAMETER
;
if
(
!
(
socket
=
(
struct
socket
*
)
grab_object
(
hsocket
)))
return
ERROR_INVALID_HANDLE
;
if
(
socket
->
hdr
.
type
!=
WINHTTP_HANDLE_TYPE_SOCKET
)
{
release_object
(
&
socket
->
hdr
);
return
ERROR_WINHTTP_INCORRECT_HANDLE_TYPE
;
}
if
(
socket
->
state
<
SOCKET_STATE_CLOSED
)
{
release_object
(
&
socket
->
hdr
);
return
ERROR_WINHTTP_INCORRECT_HANDLE_STATE
;
}
*
status
=
socket
->
status
;
*
ret_len
=
socket
->
reason_len
;
if
(
socket
->
reason_len
>
len
)
ret
=
ERROR_INSUFFICIENT_BUFFER
;
else
{
memcpy
(
reason
,
socket
->
reason
,
socket
->
reason_len
);
ret
=
ERROR_SUCCESS
;
}
release_object
(
&
socket
->
hdr
);
return
ret
;
}
enum
request_state
...
...
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