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
f191f59e
Commit
f191f59e
authored
Dec 03, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Flesh out more of the IRpcChannelBuffer vtable to make the…
rpcrt4: Flesh out more of the IRpcChannelBuffer vtable to make the test_delegating_Invoke test succeed on Windows.
parent
8f3afb41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
10 deletions
+57
-10
cstub.c
dlls/rpcrt4/tests/cstub.c
+57
-10
No files found.
dlls/rpcrt4/tests/cstub.c
View file @
f191f59e
...
...
@@ -836,7 +836,25 @@ static ITypeLibVtbl delegating_invoke_test_obj_vtbl =
NULL
};
static
HRESULT
WINAPI
delegating_invoke_test_get_buffer
(
IRpcChannelBuffer
*
pchan
,
static
HRESULT
WINAPI
delegating_invoke_chan_query_interface
(
IRpcChannelBuffer
*
pchan
,
REFIID
iid
,
void
**
ppv
)
{
ok
(
0
,
"call to QueryInterface not expected
\n
"
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
delegating_invoke_chan_add_ref
(
IRpcChannelBuffer
*
pchan
)
{
return
2
;
}
static
ULONG
WINAPI
delegating_invoke_chan_release
(
IRpcChannelBuffer
*
pchan
)
{
return
1
;
}
static
HRESULT
WINAPI
delegating_invoke_chan_get_buffer
(
IRpcChannelBuffer
*
pchan
,
RPCOLEMESSAGE
*
msg
,
REFIID
iid
)
{
...
...
@@ -844,16 +862,46 @@ static HRESULT WINAPI delegating_invoke_test_get_buffer(IRpcChannelBuffer *pchan
return
S_OK
;
}
static
HRESULT
WINAPI
delegating_invoke_chan_send_receive
(
IRpcChannelBuffer
*
pchan
,
RPCOLEMESSAGE
*
pMessage
,
ULONG
*
pStatus
)
{
ok
(
0
,
"call to SendReceive not expected
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
delegating_invoke_chan_free_buffer
(
IRpcChannelBuffer
*
pchan
,
RPCOLEMESSAGE
*
pMessage
)
{
ok
(
0
,
"call to FreeBuffer not expected
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
delegating_invoke_chan_get_dest_ctx
(
IRpcChannelBuffer
*
pchan
,
DWORD
*
pdwDestContext
,
void
**
ppvDestContext
)
{
*
pdwDestContext
=
MSHCTX_LOCAL
;
*
ppvDestContext
=
NULL
;
return
S_OK
;
}
static
HRESULT
WINAPI
delegating_invoke_chan_is_connected
(
IRpcChannelBuffer
*
pchan
)
{
ok
(
0
,
"call to IsConnected not expected
\n
"
);
return
E_NOTIMPL
;
}
static
IRpcChannelBufferVtbl
delegating_invoke_test_rpc_chan_vtbl
=
{
NULL
,
NULL
,
NULL
,
delegating_invoke_
test
_get_buffer
,
NULL
,
NULL
,
NULL
,
NULL
delegating_invoke_chan_query_interface
,
delegating_invoke_chan_add_ref
,
delegating_invoke_chan_release
,
delegating_invoke_
chan
_get_buffer
,
delegating_invoke_chan_send_receive
,
delegating_invoke_chan_free_buffer
,
delegating_invoke_chan_get_dest_ctx
,
delegating_invoke_chan_is_connected
};
static
void
test_delegating_Invoke
(
IPSFactoryBuffer
*
ppsf
)
...
...
@@ -869,7 +917,6 @@ static void test_delegating_Invoke(IPSFactoryBuffer *ppsf)
memset
(
&
msg
,
0
,
sizeof
(
msg
));
msg
.
dataRepresentation
=
NDR_LOCAL_DATA_REPRESENTATION
;
msg
.
iMethod
=
3
;
/* FIXME: Figure out why this fails on Windows */
r
=
IRpcStubBuffer_Invoke
(
pstub
,
&
msg
,
pchan
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
if
(
r
==
S_OK
)
...
...
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