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
afe14ab9
Commit
afe14ab9
authored
Mar 08, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Don't fail if the filter CLSID doesn't exist.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
71bd11bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
filtermapper.c
dlls/quartz/filtermapper.c
+5
-2
filtermapper.c
dlls/quartz/tests/filtermapper.c
+6
-0
No files found.
dlls/quartz/filtermapper.c
View file @
afe14ab9
...
...
@@ -1523,22 +1523,25 @@ static HRESULT WINAPI FilterMapper_UnregisterFilter(IFilterMapper * iface, CLSID
strcatW
(
wszKeyName
,
wszClsid
);
lRet
=
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
wszKeyName
,
0
,
KEY_WRITE
,
&
hKey
);
if
(
lRet
==
ERROR_FILE_NOT_FOUND
)
goto
done
;
hr
=
HRESULT_FROM_WIN32
(
lRet
);
}
if
(
SUCCEEDED
(
hr
))
{
lRet
=
RegDeleteValueW
(
hKey
,
wszMeritName
);
if
(
lRet
!=
ERROR_SUCCESS
)
if
(
lRet
!=
ERROR_SUCCESS
&&
lRet
!=
ERROR_FILE_NOT_FOUND
)
hr
=
HRESULT_FROM_WIN32
(
lRet
);
lRet
=
RegDeleteTreeW
(
hKey
,
wszPins
);
if
(
lRet
!=
ERROR_SUCCESS
)
if
(
lRet
!=
ERROR_SUCCESS
&&
lRet
!=
ERROR_FILE_NOT_FOUND
)
hr
=
HRESULT_FROM_WIN32
(
lRet
);
RegCloseKey
(
hKey
);
}
done:
CoTaskMemFree
(
wszClsid
);
return
hr
;
...
...
dlls/quartz/tests/filtermapper.c
View file @
afe14ab9
...
...
@@ -297,6 +297,12 @@ static void test_legacy_filter_registration(void)
ret
=
RegDeleteKeyW
(
HKEY_CLASSES_ROOT
,
key_name
);
ok
(
!
ret
,
"RegDeleteKeyA failed: %lu
\n
"
,
ret
);
hr
=
IFilterMapper_RegisterFilter
(
mapper
,
clsid
,
testfilterW
,
MERIT_UNLIKELY
);
ok
(
hr
==
S_OK
,
"RegisterFilter failed: %#x
\n
"
,
hr
);
hr
=
IFilterMapper_UnregisterFilter
(
mapper
,
clsid
);
ok
(
hr
==
S_OK
,
"FilterMapper_UnregisterFilter failed with %x
\n
"
,
hr
);
IFilterMapper_Release
(
mapper
);
IFilterMapper2_Release
(
mapper2
);
}
...
...
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