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
c22d776e
Commit
c22d776e
authored
Apr 30, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
May 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Only fail on missing Implemented Categories key if we actually have categories to check.
parent
21f75386
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
comcat.c
dlls/ole32/comcat.c
+12
-10
No files found.
dlls/ole32/comcat.c
View file @
c22d776e
...
...
@@ -232,18 +232,20 @@ static HRESULT COMCAT_IsClassOfCategories(
LPCWSTR
string
;
/* Check that every given category is implemented by class. */
res
=
RegOpenKeyExW
(
key
,
impl_keyname
,
0
,
KEY_READ
,
&
subkey
);
if
(
res
!=
ERROR_SUCCESS
)
return
S_FALSE
;
for
(
string
=
categories
->
impl_strings
;
*
string
;
string
+=
39
)
{
HKEY
catkey
;
res
=
RegOpenKeyExW
(
subkey
,
string
,
0
,
0
,
&
catkey
);
if
(
res
!=
ERROR_SUCCESS
)
{
RegCloseKey
(
subkey
);
return
S_FALSE
;
if
(
*
categories
->
impl_strings
)
{
res
=
RegOpenKeyExW
(
key
,
impl_keyname
,
0
,
KEY_READ
,
&
subkey
);
if
(
res
!=
ERROR_SUCCESS
)
return
S_FALSE
;
for
(
string
=
categories
->
impl_strings
;
*
string
;
string
+=
39
)
{
HKEY
catkey
;
res
=
RegOpenKeyExW
(
subkey
,
string
,
0
,
0
,
&
catkey
);
if
(
res
!=
ERROR_SUCCESS
)
{
RegCloseKey
(
subkey
);
return
S_FALSE
;
}
RegCloseKey
(
catkey
);
}
RegCloseKey
(
cat
key
);
RegCloseKey
(
sub
key
);
}
RegCloseKey
(
subkey
);
/* Check that all categories required by class are given. */
res
=
RegOpenKeyExW
(
key
,
req_keyname
,
0
,
KEY_READ
,
&
subkey
);
...
...
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