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
f90b5bfe
Commit
f90b5bfe
authored
Mar 02, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Rewrite code to make more understandable (Coverity).
parent
4c6e5765
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
shlinstobj.c
dlls/shdocvw/shlinstobj.c
+6
-7
No files found.
dlls/shdocvw/shlinstobj.c
View file @
f90b5bfe
...
...
@@ -375,16 +375,15 @@ HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid, REFIID riid,
ppvClassObj
);
/* Figure if there is an 'Instance' subkey for the given CLSID and acquire a handle. */
if
(
!
StringFromGUID2
(
rclsid
,
wszInstanceKey
+
6
,
CHARS_IN_GUID
)
||
!
(
wszInstanceKey
[
5
+
CHARS_IN_GUID
]
=
'\\'
)
||
/* Repair the null-termination. */
ERROR_SUCCESS
!=
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
wszInstanceKey
,
0
,
KEY_READ
,
&
hInstanceKey
))
{
if
(
!
StringFromGUID2
(
rclsid
,
wszInstanceKey
+
6
,
CHARS_IN_GUID
)
)
return
CLASS_E_CLASSNOTAVAILABLE
;
wszInstanceKey
[
5
+
CHARS_IN_GUID
]
=
'\\'
;
/* Repair the null-termination. */
if
(
ERROR_SUCCESS
!=
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
wszInstanceKey
,
0
,
KEY_READ
,
&
hInstanceKey
))
/* If there is no 'Instance' subkey, then it's not a Shell Instance Object. */
return
CLASS_E_CLASSNOTAVAILABLE
;
}
if
(
RegQueryValueExW
(
hInstanceKey
,
wszCLSID
,
NULL
,
&
dwType
,
(
LPBYTE
)
wszCLSIDInstance
,
&
cbBytes
)
!=
ERROR_SUCCESS
||
FAILED
(
CLSIDFromString
(
wszCLSIDInstance
,
&
clsidInstance
)))
if
(
ERROR_SUCCESS
!=
RegQueryValueExW
(
hInstanceKey
,
wszCLSID
,
NULL
,
&
dwType
,
(
LPBYTE
)
wszCLSIDInstance
,
&
cbBytes
)
||
FAILED
(
CLSIDFromString
(
wszCLSIDInstance
,
&
clsidInstance
)))
{
/* 'Instance' should have a 'CLSID' value with a well-formed clsid-string. */
FIXME
(
"Failed to infer instance CLSID! %s
\n
"
,
debugstr_w
(
wszCLSIDInstance
));
...
...
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