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
1d5e028e
Commit
1d5e028e
authored
Oct 03, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mcicda: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d9e109fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
mcicda.c
dlls/mcicda/mcicda.c
+2
-4
No files found.
dlls/mcicda/mcicda.c
View file @
1d5e028e
...
...
@@ -665,15 +665,13 @@ static DWORD MCICDA_Info(UINT wDevID, DWORD dwFlags, LPMCI_INFO_PARMSW lpParms)
TRACE
(
"buf=%p, len=%u
\n
"
,
lpParms
->
lpstrReturn
,
lpParms
->
dwRetSize
);
if
(
dwFlags
&
MCI_INFO_PRODUCT
)
{
static
const
WCHAR
wszAudioCd
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'\''
,
's'
,
' '
,
'a'
,
'u'
,
'd'
,
'i'
,
'o'
,
' '
,
'C'
,
'D'
,
0
};
str
=
wszAudioCd
;
str
=
L"Wine's audio CD"
;
}
else
if
(
dwFlags
&
MCI_INFO_MEDIA_UPC
)
{
ret
=
MCIERR_NO_IDENTITY
;
}
else
if
(
dwFlags
&
MCI_INFO_MEDIA_IDENTITY
)
{
DWORD
res
=
0
;
CDROM_TOC
toc
;
DWORD
br
;
static
const
WCHAR
wszLu
[]
=
{
'%'
,
'l'
,
'u'
,
0
};
if
(
!
device_io
(
wmcda
->
handle
,
IOCTL_CDROM_READ_TOC
,
NULL
,
0
,
&
toc
,
sizeof
(
toc
),
&
br
,
NULL
))
{
...
...
@@ -681,7 +679,7 @@ static DWORD MCICDA_Info(UINT wDevID, DWORD dwFlags, LPMCI_INFO_PARMSW lpParms)
}
res
=
CDROM_Audio_GetSerial
(
&
toc
);
swprintf
(
buffer
,
ARRAY_SIZE
(
buffer
),
wszLu
,
res
);
swprintf
(
buffer
,
ARRAY_SIZE
(
buffer
),
L"%lu"
,
res
);
str
=
buffer
;
}
else
{
WARN
(
"Don't know this info command (%u)
\n
"
,
dwFlags
);
...
...
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