Commit 97167763 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

webservices: Implement WS_CHANNEL_PROPERTY_CHANNEL_TYPE.

parent 7c94cf90
...@@ -232,7 +232,7 @@ HRESULT WINAPI WsGetChannelProperty( WS_CHANNEL *handle, WS_CHANNEL_PROPERTY_ID ...@@ -232,7 +232,7 @@ HRESULT WINAPI WsGetChannelProperty( WS_CHANNEL *handle, WS_CHANNEL_PROPERTY_ID
ULONG size, WS_ERROR *error ) ULONG size, WS_ERROR *error )
{ {
struct channel *channel = (struct channel *)handle; struct channel *channel = (struct channel *)handle;
HRESULT hr; HRESULT hr = S_OK;
TRACE( "%p %u %p %u %p\n", handle, id, buf, size, error ); TRACE( "%p %u %p %u %p\n", handle, id, buf, size, error );
if (error) FIXME( "ignoring error parameter\n" ); if (error) FIXME( "ignoring error parameter\n" );
...@@ -247,7 +247,16 @@ HRESULT WINAPI WsGetChannelProperty( WS_CHANNEL *handle, WS_CHANNEL_PROPERTY_ID ...@@ -247,7 +247,16 @@ HRESULT WINAPI WsGetChannelProperty( WS_CHANNEL *handle, WS_CHANNEL_PROPERTY_ID
return E_INVALIDARG; return E_INVALIDARG;
} }
hr = prop_get( channel->prop, channel->prop_count, id, buf, size ); switch (id)
{
case WS_CHANNEL_PROPERTY_CHANNEL_TYPE:
if (!buf || size != sizeof(channel->type)) hr = E_INVALIDARG;
else *(WS_CHANNEL_TYPE *)buf = channel->type;
break;
default:
hr = prop_get( channel->prop, channel->prop_count, id, buf, size );
}
LeaveCriticalSection( &channel->cs ); LeaveCriticalSection( &channel->cs );
return hr; return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment