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
79e19b91
Commit
79e19b91
authored
Jun 01, 2007
by
Julien Muchembled
Committed by
Alexandre Julliard
Jun 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: Fix enumeration of VFW video codecs that are registered in the registry.
parent
fc5a7461
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
msvideo_main.c
dlls/msvfw32/msvideo_main.c
+10
-8
No files found.
dlls/msvfw32/msvideo_main.c
View file @
79e19b91
...
...
@@ -107,9 +107,8 @@ typedef BOOL (*enum_handler_t)(const char*, int, void*);
static
BOOL
enum_drivers
(
DWORD
fccType
,
enum_handler_t
handler
,
void
*
param
)
{
CHAR
buf
[
2048
],
fccTypeStr
[
5
],
*
s
;
DWORD
i
,
cnt
=
0
,
bufLen
,
lRet
;
DWORD
i
,
cnt
=
0
,
lRet
;
BOOL
result
=
FALSE
;
FILETIME
lastWrite
;
HKEY
hKey
;
fourcc_to_string
(
fccTypeStr
,
fccType
);
...
...
@@ -119,14 +118,17 @@ static BOOL enum_drivers(DWORD fccType, enum_handler_t handler, void* param)
lRet
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
HKLM_DRIVERS32
,
0
,
KEY_QUERY_VALUE
,
&
hKey
);
if
(
lRet
==
ERROR_SUCCESS
)
{
DWORD
numkeys
;
RegQueryInfoKeyA
(
hKey
,
0
,
0
,
0
,
&
numkeys
,
0
,
0
,
0
,
0
,
0
,
0
,
0
)
;
for
(
i
=
0
;
i
<
numkeys
;
i
++
)
DWORD
name
,
data
,
type
;
i
=
0
;
for
(;;)
{
bufLen
=
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]);
lRet
=
RegEnumKeyExA
(
hKey
,
i
,
buf
,
&
bufLen
,
0
,
0
,
0
,
&
lastWrite
);
name
=
10
;
data
=
sizeof
buf
-
name
;
lRet
=
RegEnumValueA
(
hKey
,
i
++
,
buf
,
&
name
,
0
,
&
type
,
(
LPBYTE
)(
buf
+
name
),
&
data
);
if
(
lRet
==
ERROR_NO_MORE_ITEMS
)
break
;
if
(
lRet
!=
ERROR_SUCCESS
)
continue
;
if
(
strncasecmp
(
buf
,
fccTypeStr
,
5
)
||
buf
[
9
]
!=
'='
)
continue
;
if
(
name
!=
9
||
strncasecmp
(
buf
,
fccTypeStr
,
5
))
continue
;
buf
[
name
]
=
'='
;
if
((
result
=
handler
(
buf
,
cnt
++
,
param
)))
break
;
}
RegCloseKey
(
hKey
);
...
...
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