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
bc87dd60
Commit
bc87dd60
authored
Mar 12, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Registry access calls don't return HRESULT codes.
parent
533f7558
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
api.c
dlls/avifil32/api.c
+5
-5
No files found.
dlls/avifil32/api.c
View file @
bc87dd60
...
...
@@ -1030,14 +1030,14 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
* First filter is named "All multimedia files" and its filter is a
* collection of all possible extensions except "*.*".
*/
if
(
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
szAVIFileExtensions
,
&
hKey
)
!=
S_OK
)
{
if
(
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
szAVIFileExtensions
,
&
hKey
)
!=
ERROR_SUCCESS
)
{
HeapFree
(
GetProcessHeap
(),
0
,
lp
);
return
AVIERR_ERROR
;
}
for
(
n
=
0
;
RegEnumKeyW
(
hKey
,
n
,
szFileExt
,
sizeof
(
szFileExt
)
/
sizeof
(
szFileExt
[
0
]))
==
S_OK
;
n
++
)
{
for
(
n
=
0
;
RegEnumKeyW
(
hKey
,
n
,
szFileExt
,
sizeof
(
szFileExt
)
/
sizeof
(
szFileExt
[
0
]))
==
ERROR_SUCCESS
;
n
++
)
{
/* get CLSID to extension */
size
=
sizeof
(
szValue
);
if
(
RegQueryValueW
(
hKey
,
szFileExt
,
szValue
,
&
size
)
!=
S_OK
)
if
(
RegQueryValueW
(
hKey
,
szFileExt
,
szValue
,
&
size
)
!=
ERROR_SUCCESS
)
break
;
/* search if the CLSID is already known */
...
...
@@ -1078,7 +1078,7 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
RegCloseKey
(
hKey
);
/* 2. get descriptions for the CLSIDs and fill out szFilter */
if
(
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
szClsid
,
&
hKey
)
!=
S_OK
)
{
if
(
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
szClsid
,
&
hKey
)
!=
ERROR_SUCCESS
)
{
HeapFree
(
GetProcessHeap
(),
0
,
lp
);
return
AVIERR_ERROR
;
}
...
...
@@ -1086,7 +1086,7 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
/* first the description */
if
(
n
!=
0
)
{
size
=
sizeof
(
szValue
);
if
(
RegQueryValueW
(
hKey
,
lp
[
n
].
szClsid
,
szValue
,
&
size
)
==
S_OK
)
{
if
(
RegQueryValueW
(
hKey
,
lp
[
n
].
szClsid
,
szValue
,
&
size
)
==
ERROR_SUCCESS
)
{
size
=
lstrlenW
(
szValue
);
lstrcpynW
(
szFilter
,
szValue
,
cbFilter
);
}
...
...
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