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
075ff233
Commit
075ff233
authored
Apr 14, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciavi32: Remove unnecessary string buffers in MCIAVI_mciSet.
parent
5f4cc6a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
info.c
dlls/mciavi32/info.c
+20
-19
No files found.
dlls/mciavi32/info.c
View file @
075ff233
...
...
@@ -225,72 +225,73 @@ DWORD MCIAVI_mciSet(UINT wDevID, DWORD dwFlags, LPMCI_DGV_SET_PARMS lpParms)
}
if
(
dwFlags
&
MCI_SET_ON
)
{
c
har
buffer
[
256
]
;
strcpy
(
buffer
,
"MCI_SET_ON:"
)
;
c
onst
char
*
szVideo
=
""
;
const
char
*
szAudio
=
""
;
const
char
*
szSeek
=
""
;
if
(
dwFlags
&
MCI_SET_VIDEO
)
{
s
trncat
(
buffer
,
" video"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_ON:"
))
;
s
zVideo
=
" video"
;
wma
->
dwSet
|=
4
;
}
if
(
dwFlags
&
MCI_SET_AUDIO
)
{
strncat
(
buffer
,
" audio"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_ON:"
));
switch
(
lpParms
->
dwAudio
)
{
case
MCI_SET_AUDIO_ALL
:
s
trncat
(
buffer
,
" all"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_ON:"
))
;
s
zAudio
=
" audio all"
;
wma
->
dwSet
|=
3
;
break
;
case
MCI_SET_AUDIO_LEFT
:
s
trncat
(
buffer
,
" left"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_ON:"
))
;
s
zAudio
=
" audio left"
;
wma
->
dwSet
|=
1
;
break
;
case
MCI_SET_AUDIO_RIGHT
:
s
trncat
(
buffer
,
" right"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_ON:"
))
;
s
zAudio
=
" audio right"
;
wma
->
dwSet
|=
2
;
break
;
default:
szAudio
=
" audio unknown"
;
WARN
(
"Unknown audio channel %u
\n
"
,
lpParms
->
dwAudio
);
break
;
}
}
if
(
dwFlags
&
MCI_DGV_SET_SEEK_EXACTLY
)
{
s
trncat
(
buffer
,
" seek_exactly"
,
sizeof
(
buffer
))
;
s
zSeek
=
" seek_exactly"
;
}
FIXME
(
"
%s
\n
"
,
buffer
);
FIXME
(
"
MCI_SET_ON:%s%s%s
\n
"
,
szVideo
,
szAudio
,
szSeek
);
}
if
(
dwFlags
&
MCI_SET_OFF
)
{
char
buffer
[
256
];
const
char
*
szVideo
=
""
;
const
char
*
szAudio
=
""
;
const
char
*
szSeek
=
""
;
strcpy
(
buffer
,
"MCI_SET_OFF:"
);
if
(
dwFlags
&
MCI_SET_VIDEO
)
{
s
trncat
(
buffer
,
" video"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_OFF:"
))
;
s
zVideo
=
" video"
;
wma
->
dwSet
&=
~
4
;
}
if
(
dwFlags
&
MCI_SET_AUDIO
)
{
strncat
(
buffer
,
" audio"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_OFF:"
));
switch
(
lpParms
->
dwAudio
)
{
case
MCI_SET_AUDIO_ALL
:
s
trncat
(
buffer
,
" all"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_OFF:"
))
;
s
zAudio
=
" audio all"
;
wma
->
dwSet
&=
~
3
;
break
;
case
MCI_SET_AUDIO_LEFT
:
s
trncat
(
buffer
,
" left"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_OFF:"
))
;
s
zAudio
=
" audio left"
;
wma
->
dwSet
&=
~
2
;
break
;
case
MCI_SET_AUDIO_RIGHT
:
s
trncat
(
buffer
,
" right"
,
sizeof
(
buffer
)
-
sizeof
(
"MCI_SET_OFF:"
))
;
s
zAudio
=
" audio right"
;
wma
->
dwSet
&=
~
2
;
break
;
default:
szAudio
=
" audio unknown"
;
WARN
(
"Unknown audio channel %u
\n
"
,
lpParms
->
dwAudio
);
break
;
}
}
if
(
dwFlags
&
MCI_DGV_SET_SEEK_EXACTLY
)
{
s
trncat
(
buffer
,
" seek_exactly"
,
sizeof
(
buffer
)
-
strlen
(
buffer
)
-
1
)
;
s
zSeek
=
" seek_exactly"
;
}
FIXME
(
"
%s
\n
"
,
buffer
);
FIXME
(
"
MCI_SET_OFF:%s%s%s
\n
"
,
szVideo
,
szAudio
,
szSeek
);
}
if
(
dwFlags
&
MCI_DGV_SET_FILEFORMAT
)
{
LPCSTR
str
=
"save"
;
...
...
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