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
21dca0a2
Commit
21dca0a2
authored
Oct 03, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1d5e028e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
mcimidi.c
dlls/mciseq/mcimidi.c
+2
-4
No files found.
dlls/mciseq/mcimidi.c
View file @
21dca0a2
...
...
@@ -1509,7 +1509,6 @@ static DWORD MIDI_mciInfo(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_INFO_PARMSW lp
{
LPCWSTR
str
=
0
;
DWORD
ret
=
0
;
static
const
WCHAR
wszMidiSeq
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'\''
,
's'
,
' '
,
'M'
,
'I'
,
'D'
,
'I'
,
' '
,
's'
,
'e'
,
'q'
,
'u'
,
'e'
,
'n'
,
'c'
,
'e'
,
'r'
,
0
};
TRACE
(
"(%d, %08X, %p);
\n
"
,
wmm
->
wDevID
,
dwFlags
,
lpParms
);
...
...
@@ -1519,7 +1518,7 @@ static DWORD MIDI_mciInfo(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_INFO_PARMSW lp
TRACE
(
"buf=%p, len=%u
\n
"
,
lpParms
->
lpstrReturn
,
lpParms
->
dwRetSize
);
switch
(
dwFlags
&
~
(
MCI_WAIT
|
MCI_NOTIFY
))
{
case
MCI_INFO_PRODUCT
:
str
=
wszMidiSeq
;
break
;
case
MCI_INFO_PRODUCT
:
str
=
L"Wine's MIDI sequencer"
;
break
;
case
MCI_INFO_FILE
:
str
=
wmm
->
lpstrElementName
;
break
;
case
MCI_INFO_COPYRIGHT
:
str
=
wmm
->
lpstrCopyright
;
break
;
case
MCI_INFO_NAME
:
str
=
wmm
->
lpstrName
;
break
;
...
...
@@ -1529,10 +1528,9 @@ static DWORD MIDI_mciInfo(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_INFO_PARMSW lp
}
if
(
!
ret
)
{
if
(
lpParms
->
dwRetSize
)
{
WCHAR
zero
=
0
;
/* FIXME? Since NT, mciwave, mciseq and mcicda set dwRetSize
* to the number of characters written, excluding \0. */
lstrcpynW
(
lpParms
->
lpstrReturn
,
str
?
str
:
&
zero
,
lpParms
->
dwRetSize
);
lstrcpynW
(
lpParms
->
lpstrReturn
,
str
?
str
:
L""
,
lpParms
->
dwRetSize
);
}
else
ret
=
MCIERR_PARAM_OVERFLOW
;
}
if
(
MMSYSERR_NOERROR
==
ret
&&
(
dwFlags
&
MCI_NOTIFY
))
...
...
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