Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
06085817
Commit
06085817
authored
Apr 07, 2010
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Handle NULL pclsid in NdrDllRegisterProxy and NdrDllUnregisterProxy.
parent
3bc0a109
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
cpsf.c
dlls/rpcrt4/cpsf.c
+14
-2
No files found.
dlls/rpcrt4/cpsf.c
View file @
06085817
...
...
@@ -240,7 +240,12 @@ HRESULT WINAPI NdrDllRegisterProxy(HMODULE hDll,
DWORD
len
;
TRACE
(
"(%p,%p,%s)
\n
"
,
hDll
,
pProxyFileList
,
debugstr_guid
(
pclsid
));
format_clsid
(
clsid
,
pclsid
);
if
(
pclsid
)
format_clsid
(
clsid
,
pclsid
);
else
if
((
*
pProxyFileList
)
->
TableSize
>
0
)
format_clsid
(
clsid
,(
*
pProxyFileList
)
->
pStubVtblList
[
0
]
->
header
.
piid
);
else
return
E_NOINTERFACE
;
/* register interfaces to point to clsid */
while
(
*
pProxyFileList
)
{
...
...
@@ -297,8 +302,15 @@ HRESULT WINAPI NdrDllUnregisterProxy(HMODULE hDll,
static
const
WCHAR
clsidW
[]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
'\\'
,
0
};
static
const
WCHAR
interfaceW
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'f'
,
'a'
,
'c'
,
'e'
,
'\\'
,
0
};
WCHAR
keyname
[
50
];
WCHAR
clsid
[
39
];
TRACE
(
"(%p,%p,%s)
\n
"
,
hDll
,
pProxyFileList
,
debugstr_guid
(
pclsid
));
if
(
pclsid
)
format_clsid
(
clsid
,
pclsid
);
else
if
((
*
pProxyFileList
)
->
TableSize
>
0
)
format_clsid
(
clsid
,(
*
pProxyFileList
)
->
pStubVtblList
[
0
]
->
header
.
piid
);
else
return
E_NOINTERFACE
;
/* unregister interfaces */
while
(
*
pProxyFileList
)
{
...
...
@@ -318,7 +330,7 @@ HRESULT WINAPI NdrDllUnregisterProxy(HMODULE hDll,
/* unregister clsid */
strcpyW
(
keyname
,
clsidW
);
format_clsid
(
keyname
+
strlenW
(
keyname
),
p
clsid
);
strcatW
(
keyname
,
clsid
);
RegDeleteTreeW
(
HKEY_CLASSES_ROOT
,
keyname
);
return
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