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
0e566c5b
Commit
0e566c5b
authored
Apr 19, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
May 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: Force lower-case 'vidc/vids/audc' etc. when opening new driver.
parent
b22b8001
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
msvideo_main.c
dlls/msvfw32/msvideo_main.c
+11
-3
No files found.
dlls/msvfw32/msvideo_main.c
View file @
0e566c5b
...
...
@@ -403,9 +403,11 @@ HIC VFWAPI ICOpen(DWORD fccType, DWORD fccHandler, UINT wMode)
driver
=
reg_driver_list
;
while
(
driver
)
if
(
!
compare_fourcc
(
fccType
,
driver
->
fccType
)
&&
!
compare_fourcc
(
fccHandler
,
driver
->
fccHandler
))
!
compare_fourcc
(
fccHandler
,
driver
->
fccHandler
))
{
fccType
=
driver
->
fccType
;
fccHandler
=
driver
->
fccHandler
;
break
;
else
}
else
driver
=
driver
->
next
;
if
(
driver
&&
driver
->
proc
)
...
...
@@ -426,7 +428,13 @@ HIC VFWAPI ICOpen(DWORD fccType, DWORD fccHandler, UINT wMode)
icopen
.
dnDevNode
=
0
;
/* FIXME */
if
(
!
driver
)
{
/* The driver is registered in the registry */
/* normalize to lower case as in 'vidc' */
((
char
*
)
&
fccType
)[
0
]
=
tolower
(((
char
*
)
&
fccType
)[
0
]);
((
char
*
)
&
fccType
)[
1
]
=
tolower
(((
char
*
)
&
fccType
)[
1
]);
((
char
*
)
&
fccType
)[
2
]
=
tolower
(((
char
*
)
&
fccType
)[
2
]);
((
char
*
)
&
fccType
)[
3
]
=
tolower
(((
char
*
)
&
fccType
)[
3
]);
icopen
.
fccType
=
fccType
;
/* Seek the driver in the registry */
fourcc_to_string
(
codecname
,
fccType
);
codecname
[
4
]
=
'.'
;
fourcc_to_string
(
codecname
+
5
,
fccHandler
);
...
...
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