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
6ec9e0c7
Commit
6ec9e0c7
authored
Jan 17, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add an exception handler for stubless object proxies.
parent
c975876c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
5 deletions
+59
-5
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+59
-5
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
6ec9e0c7
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include "rpc.h"
#include "rpc.h"
#include "rpcproxy.h"
#include "rpcproxy.h"
#include "wine/exception.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/rpcfc.h"
#include "wine/rpcfc.h"
...
@@ -676,6 +677,10 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
...
@@ -676,6 +677,10 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
* 4. PROXY_SENDRECEIVE - send/receive buffer
* 4. PROXY_SENDRECEIVE - send/receive buffer
* 5. PROXY_UNMARHSAL - unmarshal [out] params from buffer
* 5. PROXY_UNMARHSAL - unmarshal [out] params from buffer
*/
*/
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_OBJECT
)
{
__TRY
{
for
(
phase
=
PROXY_CALCSIZE
;
phase
<=
PROXY_UNMARSHAL
;
phase
++
)
for
(
phase
=
PROXY_CALCSIZE
;
phase
<=
PROXY_UNMARSHAL
;
phase
++
)
{
{
TRACE
(
"phase = %d
\n
"
,
phase
);
TRACE
(
"phase = %d
\n
"
,
phase
);
...
@@ -683,9 +688,59 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
...
@@ -683,9 +688,59 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
{
{
case
PROXY_GETBUFFER
:
case
PROXY_GETBUFFER
:
/* allocate the buffer */
/* allocate the buffer */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_OBJECT
)
NdrProxyGetBuffer
(
This
,
&
stubMsg
);
NdrProxyGetBuffer
(
This
,
&
stubMsg
);
else
if
(
Oif_flags
.
HasPipes
)
break
;
case
PROXY_SENDRECEIVE
:
/* send the [in] params and receive the [out] and [retval]
* params */
NdrProxySendReceive
(
This
,
&
stubMsg
);
/* convert strings, floating point values and endianess into our
* preferred format */
if
((
rpcMsg
.
DataRepresentation
&
0x0000FFFFUL
)
!=
NDR_LOCAL_DATA_REPRESENTATION
)
NdrConvert
(
&
stubMsg
,
pFormat
);
break
;
case
PROXY_CALCSIZE
:
case
PROXY_MARSHAL
:
case
PROXY_UNMARSHAL
:
if
(
bV2Format
)
client_do_args
(
&
stubMsg
,
pFormat
,
phase
,
number_of_params
,
(
unsigned
char
*
)
&
RetVal
);
else
client_do_args_old_format
(
&
stubMsg
,
pFormat
,
phase
,
stack_size
,
(
unsigned
char
*
)
&
RetVal
,
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_OBJECT
));
break
;
default:
ERR
(
"shouldn't reach here. phase %d
\n
"
,
phase
);
break
;
}
}
}
__EXCEPT
(
NULL
)
{
RetVal
=
NdrProxyErrorHandler
(
GetExceptionCode
());
}
__ENDTRY
}
else
{
/* order of phases:
* 1. PROXY_CALCSIZE - calculate the buffer size
* 2. PROXY_GETBUFFER - allocate the buffer
* 3. PROXY_MARHSAL - marshal [in] params into the buffer
* 4. PROXY_SENDRECEIVE - send/receive buffer
* 5. PROXY_UNMARHSAL - unmarshal [out] params from buffer
*/
for
(
phase
=
PROXY_CALCSIZE
;
phase
<=
PROXY_UNMARSHAL
;
phase
++
)
{
TRACE
(
"phase = %d
\n
"
,
phase
);
switch
(
phase
)
{
case
PROXY_GETBUFFER
:
/* allocate the buffer */
if
(
Oif_flags
.
HasPipes
)
/* NdrGetPipeBuffer(...) */
/* NdrGetPipeBuffer(...) */
FIXME
(
"pipes not supported yet
\n
"
);
FIXME
(
"pipes not supported yet
\n
"
);
else
else
...
@@ -703,9 +758,7 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
...
@@ -703,9 +758,7 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
case
PROXY_SENDRECEIVE
:
case
PROXY_SENDRECEIVE
:
/* send the [in] params and receive the [out] and [retval]
/* send the [in] params and receive the [out] and [retval]
* params */
* params */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_OBJECT
)
if
(
Oif_flags
.
HasPipes
)
NdrProxySendReceive
(
This
,
&
stubMsg
);
else
if
(
Oif_flags
.
HasPipes
)
/* NdrPipesSendReceive(...) */
/* NdrPipesSendReceive(...) */
FIXME
(
"pipes not supported yet
\n
"
);
FIXME
(
"pipes not supported yet
\n
"
);
else
else
...
@@ -742,6 +795,7 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
...
@@ -742,6 +795,7 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
break
;
break
;
}
}
}
}
}
if
(
ext_flags
.
HasNewCorrDesc
)
if
(
ext_flags
.
HasNewCorrDesc
)
{
{
...
...
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