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
f9b35fac
Commit
f9b35fac
authored
Jan 23, 2003
by
Waldeck Schutzer
Committed by
Alexandre Julliard
Jan 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed initialization of szDevice in ICINFO.
parent
a49cc9e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
msvideo_main.c
dlls/msvideo/msvideo_main.c
+2
-2
No files found.
dlls/msvideo/msvideo_main.c
View file @
f9b35fac
...
...
@@ -278,7 +278,7 @@ LRESULT VFWAPI ICGetInfo(HIC hic,ICINFO *picinfo,DWORD cb) {
* goes unitialized.
*/
if
(
picinfo
&&
cb
>=
sizeof
(
ICINFO
))
szDriver
[
0
]
=
0
;
/* At first, set it to an empty string */
picinfo
->
szDriver
[
0
]
=
0
;
/* At first, set it to an empty string */
ret
=
ICSendMessage
(
hic
,
ICM_GETINFO
,(
DWORD
)
picinfo
,
cb
);
...
...
@@ -287,7 +287,7 @@ LRESULT VFWAPI ICGetInfo(HIC hic,ICINFO *picinfo,DWORD cb) {
* be obtained from the registry as we do here.
*/
if
(
picinfo
&&
cb
>=
sizeof
(
ICINFO
))
if
(
szDriver
[
0
]
==
0
)
{
/* was szDriver not supplied? */
if
(
picinfo
->
szDriver
[
0
]
==
0
)
{
/* was szDriver not supplied? */
sprintf
(
codecname
,
"vidc.%.4s"
,
(
char
*
)
&
(
picinfo
->
fccHandler
));
GetPrivateProfileStringA
(
"drivers32"
,
codecname
,
""
,
szDriver
,
sizeof
(
szDriver
),
"system.ini"
);
MultiByteToWideChar
(
CP_ACP
,
0
,
szDriver
,
-
1
,
picinfo
->
szDriver
,
sizeof
(
picinfo
->
szDriver
)
/
sizeof
(
WCHAR
));
...
...
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