webservices: Implement WsGetErrorProperty and WsSetErrorProperty.
This commit is contained in:
parent
60f1b8514e
commit
a1d2f21392
|
@ -95,6 +95,15 @@ static HRESULT set_error_prop( struct error *error, WS_ERROR_PROPERTY_ID id, con
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static HRESULT get_error_prop( struct error *error, WS_ERROR_PROPERTY_ID id, void *buf, ULONG size )
|
||||||
|
{
|
||||||
|
if (id >= error->prop_count || size != error_props[id].size)
|
||||||
|
return E_INVALIDARG;
|
||||||
|
|
||||||
|
memcpy( buf, error->prop[id].value, error->prop[id].valueSize );
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* WsCreateError [webservices.@]
|
* WsCreateError [webservices.@]
|
||||||
*/
|
*/
|
||||||
|
@ -140,3 +149,29 @@ void WINAPI WsFreeError( WS_ERROR *handle )
|
||||||
TRACE( "%p\n", handle );
|
TRACE( "%p\n", handle );
|
||||||
heap_free( error );
|
heap_free( error );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* WsGetErrorProperty [webservices.@]
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI WsGetErrorProperty( WS_ERROR *handle, WS_ERROR_PROPERTY_ID id, void *buf,
|
||||||
|
ULONG size )
|
||||||
|
{
|
||||||
|
struct error *error = (struct error *)handle;
|
||||||
|
|
||||||
|
TRACE( "%p %u %p %u\n", handle, id, buf, size );
|
||||||
|
return get_error_prop( error, id, buf, size );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* WsSetErrorProperty [webservices.@]
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI WsSetErrorProperty( WS_ERROR *handle, WS_ERROR_PROPERTY_ID id, const void *value,
|
||||||
|
ULONG size )
|
||||||
|
{
|
||||||
|
struct error *error = (struct error *)handle;
|
||||||
|
|
||||||
|
TRACE( "%p %u %p %u\n", handle, id, value, size );
|
||||||
|
|
||||||
|
if (id == WS_ERROR_PROPERTY_LANGID) return WS_E_INVALID_OPERATION;
|
||||||
|
return set_error_prop( error, id, value, size );
|
||||||
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
@ stub WsGetChannelProperty
|
@ stub WsGetChannelProperty
|
||||||
@ stub WsGetCustomHeader
|
@ stub WsGetCustomHeader
|
||||||
@ stub WsGetDictionary
|
@ stub WsGetDictionary
|
||||||
@ stub WsGetErrorProperty
|
@ stdcall WsGetErrorProperty(ptr long ptr long)
|
||||||
@ stub WsGetErrorString
|
@ stub WsGetErrorString
|
||||||
@ stub WsGetFaultErrorDetail
|
@ stub WsGetFaultErrorDetail
|
||||||
@ stub WsGetFaultErrorProperty
|
@ stub WsGetFaultErrorProperty
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
@ stub WsSendMessage
|
@ stub WsSendMessage
|
||||||
@ stub WsSendReplyMessage
|
@ stub WsSendReplyMessage
|
||||||
@ stub WsSetChannelProperty
|
@ stub WsSetChannelProperty
|
||||||
@ stub WsSetErrorProperty
|
@ stdcall WsSetErrorProperty(ptr long ptr long)
|
||||||
@ stub WsSetFaultErrorDetail
|
@ stub WsSetFaultErrorDetail
|
||||||
@ stub WsSetFaultErrorProperty
|
@ stub WsSetFaultErrorProperty
|
||||||
@ stub WsSetHeader
|
@ stub WsSetHeader
|
||||||
|
|
Loading…
Reference in New Issue