Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
a1d2f213
Commit
a1d2f213
authored
9 years ago
by
Hans Leidekker
Committed by
Alexandre Julliard
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
webservices: Implement WsGetErrorProperty and WsSetErrorProperty.
parent
60f1b851
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/webservices/reader.c
+35
-0
35 additions, 0 deletions
dlls/webservices/reader.c
dlls/webservices/webservices.spec
+2
-2
2 additions, 2 deletions
dlls/webservices/webservices.spec
with
37 additions
and
2 deletions
dlls/webservices/reader.c
+
35
−
0
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
);
}
This diff is collapsed.
Click to expand it.
dlls/webservices/webservices.spec
+
2
−
2
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment