winhttp: Don't mind socket state in WinHttpWebSocketQueryCloseStatus().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
63ce184f9a
commit
673a01a442
|
@ -3991,11 +3991,6 @@ DWORD WINAPI WinHttpWebSocketQueryCloseStatus( HINTERNET hsocket, USHORT *status
|
|||
release_object( &socket->hdr );
|
||||
return ERROR_WINHTTP_INCORRECT_HANDLE_TYPE;
|
||||
}
|
||||
if (socket->state < SOCKET_STATE_CLOSED)
|
||||
{
|
||||
release_object( &socket->hdr );
|
||||
return ERROR_INVALID_OPERATION;
|
||||
}
|
||||
|
||||
if (!socket->close_frame_received || socket->close_frame_receive_err)
|
||||
{
|
||||
|
|
|
@ -1126,9 +1126,9 @@ static void test_websocket(BOOL secure)
|
|||
close_status = 0xdead;
|
||||
size = sizeof(buffer) + 1;
|
||||
err = pWinHttpWebSocketQueryCloseStatus( socket, &close_status, buffer, sizeof(buffer), &size );
|
||||
todo_wine ok( err == ERROR_SUCCESS, "got %u\n", err );
|
||||
todo_wine ok( close_status == 1000, "got %u\n", close_status );
|
||||
todo_wine ok( size <= sizeof(buffer), "got %u\n", size );
|
||||
ok( err == ERROR_SUCCESS, "got %u\n", err );
|
||||
ok( close_status == 1000, "got %u\n", close_status );
|
||||
ok( size <= sizeof(buffer), "got %u\n", size );
|
||||
|
||||
setup_test( &info, winhttp_close_handle, __LINE__ );
|
||||
|
||||
|
|
Loading…
Reference in New Issue