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
b670ec83
Commit
b670ec83
authored
Jan 30, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fill in the IRpcStubBuffer vtables for interfaces that don't
already have them filled in.
parent
be13d154
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
cpsf.c
dlls/rpcrt4/cpsf.c
+15
-0
cpsf.h
dlls/rpcrt4/cpsf.h
+2
-0
cstub.c
dlls/rpcrt4/cstub.c
+14
-0
No files found.
dlls/rpcrt4/cpsf.c
View file @
b670ec83
...
@@ -137,9 +137,24 @@ HRESULT WINAPI NdrDllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv,
...
@@ -137,9 +137,24 @@ HRESULT WINAPI NdrDllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv,
*
ppv
=
NULL
;
*
ppv
=
NULL
;
if
(
!
pPSFactoryBuffer
->
lpVtbl
)
{
if
(
!
pPSFactoryBuffer
->
lpVtbl
)
{
const
ProxyFileInfo
**
pProxyFileList2
;
pPSFactoryBuffer
->
lpVtbl
=
&
CStdPSFactory_Vtbl
;
pPSFactoryBuffer
->
lpVtbl
=
&
CStdPSFactory_Vtbl
;
pPSFactoryBuffer
->
RefCount
=
0
;
pPSFactoryBuffer
->
RefCount
=
0
;
pPSFactoryBuffer
->
pProxyFileList
=
pProxyFileList
;
pPSFactoryBuffer
->
pProxyFileList
=
pProxyFileList
;
for
(
pProxyFileList2
=
pProxyFileList
;
*
pProxyFileList2
;
pProxyFileList2
++
)
{
int
i
;
for
(
i
=
0
;
i
<
(
*
pProxyFileList2
)
->
TableSize
;
i
++
)
{
/* FIXME: i think that different vtables should be copied for
* async interfaces */
void
*
const
*
pSrcRpcStubVtbl
=
(
void
*
const
*
)
&
CStdStubBuffer_Vtbl
;
void
**
pRpcStubVtbl
=
(
void
**
)
&
(
*
pProxyFileList2
)
->
pStubVtblList
[
i
]
->
Vtbl
;
int
j
;
for
(
j
=
0
;
j
<
sizeof
(
IRpcStubBufferVtbl
)
/
sizeof
(
void
*
);
j
++
)
if
(
!
pRpcStubVtbl
[
j
])
pRpcStubVtbl
[
j
]
=
pSrcRpcStubVtbl
[
j
];
}
}
}
}
if
(
IsEqualGUID
(
rclsid
,
pclsid
))
if
(
IsEqualGUID
(
rclsid
,
pclsid
))
return
IPSFactoryBuffer_QueryInterface
((
LPPSFACTORYBUFFER
)
pPSFactoryBuffer
,
iid
,
ppv
);
return
IPSFactoryBuffer_QueryInterface
((
LPPSFACTORYBUFFER
)
pPSFactoryBuffer
,
iid
,
ppv
);
...
...
dlls/rpcrt4/cpsf.h
View file @
b670ec83
...
@@ -42,4 +42,6 @@ HRESULT WINAPI CStdStubBuffer_Construct(REFIID riid,
...
@@ -42,4 +42,6 @@ HRESULT WINAPI CStdStubBuffer_Construct(REFIID riid,
const
MIDL_SERVER_INFO
*
CStdStubBuffer_GetServerInfo
(
IRpcStubBuffer
*
iface
);
const
MIDL_SERVER_INFO
*
CStdStubBuffer_GetServerInfo
(
IRpcStubBuffer
*
iface
);
const
IRpcStubBufferVtbl
CStdStubBuffer_Vtbl
;
#endif
/* __WINE_CPSF_H */
#endif
/* __WINE_CPSF_H */
dlls/rpcrt4/cstub.c
View file @
b670ec83
...
@@ -181,6 +181,20 @@ void WINAPI CStdStubBuffer_DebugServerRelease(LPRPCSTUBBUFFER iface,
...
@@ -181,6 +181,20 @@ void WINAPI CStdStubBuffer_DebugServerRelease(LPRPCSTUBBUFFER iface,
TRACE
(
"(%p)->DebugServerRelease(%p)
\n
"
,
This
,
pv
);
TRACE
(
"(%p)->DebugServerRelease(%p)
\n
"
,
This
,
pv
);
}
}
const
IRpcStubBufferVtbl
CStdStubBuffer_Vtbl
=
{
CStdStubBuffer_QueryInterface
,
CStdStubBuffer_AddRef
,
NULL
,
CStdStubBuffer_Connect
,
CStdStubBuffer_Disconnect
,
CStdStubBuffer_Invoke
,
CStdStubBuffer_IsIIDSupported
,
CStdStubBuffer_CountRefs
,
CStdStubBuffer_DebugServerQueryInterface
,
CStdStubBuffer_DebugServerRelease
};
const
MIDL_SERVER_INFO
*
CStdStubBuffer_GetServerInfo
(
IRpcStubBuffer
*
iface
)
const
MIDL_SERVER_INFO
*
CStdStubBuffer_GetServerInfo
(
IRpcStubBuffer
*
iface
)
{
{
CStdStubBuffer
*
This
=
(
CStdStubBuffer
*
)
iface
;
CStdStubBuffer
*
This
=
(
CStdStubBuffer
*
)
iface
;
...
...
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