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
2abe47bd
Commit
2abe47bd
authored
Oct 17, 1998
by
Peter Hunnisett
Committed by
Alexandre Julliard
Oct 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small, suboptimal, fix for 32 bit cdaudio open routines. Needs proper
32bit cdaudio bit support before it can be removed...
parent
34499cc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
mcicda.c
multimedia/mcicda.c
+23
-2
No files found.
multimedia/mcicda.c
View file @
2abe47bd
...
...
@@ -5,6 +5,7 @@
* Copyright 1994 Martin Ayotte
*/
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
...
...
@@ -249,11 +250,31 @@ static DWORD CDAUDIO_mciOpen(UINT16 wDevID, DWORD dwFlags, void* lp, BOOL32 is32
TRACE
(
cdaudio
,
"MCI_OPEN_ELEMENT !
\n
"
);
/* return MCIERR_NO_ELEMENT_ALLOWED; */
}
memcpy
(
&
CDADev
[
wDevID
].
openParms
,
lp
,
sizeof
(
MCI_OPEN_PARMS16
));
if
(
is32
)
{
/* memcpy(&CDADev[wDevID].openParms, lp, sizeof(MCI_OPEN_PARMS32A)); */
/* This is an ugly temporary, hopefully, fix. Slap it in....*/
LPMCI_OPEN_PARMS32A
lpOpenParams
=
(
LPMCI_OPEN_PARMS32A
)
lp
;
CDADev
[
wDevID
].
openParms
.
dwCallback
=
lpOpenParams
->
dwCallback
;
CDADev
[
wDevID
].
openParms
.
wDeviceID
=
(
WORD
)
lpOpenParams
->
wDeviceID
;
CDADev
[
wDevID
].
openParms
.
wReserved0
=
0
;
/*????*/
CDADev
[
wDevID
].
openParms
.
lpstrDeviceType
=
lpOpenParams
->
lpstrDeviceType
;
CDADev
[
wDevID
].
openParms
.
lpstrElementName
=
lpOpenParams
->
lpstrElementName
;
CDADev
[
wDevID
].
openParms
.
lpstrAlias
=
lpOpenParams
->
lpstrAlias
;
}
else
{
memcpy
(
&
CDADev
[
wDevID
].
openParms
,
lp
,
sizeof
(
MCI_OPEN_PARMS16
));
}
CDADev
[
wDevID
].
wNotifyDeviceID
=
dwDeviceID
;
CDADev
[
wDevID
].
unixdev
=
open
(
CDAUDIO_DEV
,
O_RDONLY
,
0
);
if
(
CDADev
[
wDevID
].
unixdev
==
-
1
)
{
WARN
(
cdaudio
,
"can't open '%s' !
\n
"
,
CDAUDIO_DEV
);
WARN
(
cdaudio
,
"can't open '%s'!. errno=%d
\n
"
,
CDAUDIO_DEV
,
errno
);
perror
(
"can't open
\n
"
);
return
MCIERR_HARDWARE
;
}
CDADev
[
wDevID
].
mode
=
0
;
...
...
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