Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a1d2f213
Commit
a1d2f213
authored
Sep 11, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsGetErrorProperty and WsSetErrorProperty.
parent
60f1b851
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
reader.c
dlls/webservices/reader.c
+35
-0
webservices.spec
dlls/webservices/webservices.spec
+2
-2
No files found.
dlls/webservices/reader.c
View file @
a1d2f213
...
...
@@ -95,6 +95,15 @@ static HRESULT set_error_prop( struct error *error, WS_ERROR_PROPERTY_ID id, con
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.@]
*/
...
...
@@ -140,3 +149,29 @@ void WINAPI WsFreeError( WS_ERROR *handle )
TRACE
(
"%p
\n
"
,
handle
);
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
);
}
dlls/webservices/webservices.spec
View file @
a1d2f213
...
...
@@ -62,7 +62,7 @@
@ stub WsGetChannelProperty
@ stub WsGetCustomHeader
@ stub WsGetDictionary
@ st
ub WsGetErrorProperty
@ st
dcall WsGetErrorProperty(ptr long ptr long)
@ stub WsGetErrorString
@ stub WsGetFaultErrorDetail
@ stub WsGetFaultErrorProperty
...
...
@@ -146,7 +146,7 @@
@ stub WsSendMessage
@ stub WsSendReplyMessage
@ stub WsSetChannelProperty
@ st
ub WsSetErrorProperty
@ st
dcall WsSetErrorProperty(ptr long ptr long)
@ stub WsSetFaultErrorDetail
@ stub WsSetFaultErrorProperty
@ stub WsSetHeader
...
...
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