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
0067279c
Commit
0067279c
authored
May 31, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Fix compilation warnings in 64-bit mode.
parent
2f0bf36d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
mcimidi.c
dlls/mciseq/mcimidi.c
+9
-9
No files found.
dlls/mciseq/mcimidi.c
View file @
0067279c
...
@@ -93,8 +93,8 @@ typedef struct tagWINE_MCIMIDI {
...
@@ -93,8 +93,8 @@ typedef struct tagWINE_MCIMIDI {
struct
SCA
{
struct
SCA
{
UINT
wDevID
;
UINT
wDevID
;
UINT
wMsg
;
UINT
wMsg
;
DWORD
dwParam1
;
DWORD
_PTR
dwParam1
;
DWORD
dwParam2
;
DWORD
_PTR
dwParam2
;
};
};
/* EPP DWORD WINAPI mciSendCommandA(UINT wDevID, UINT wMsg, DWORD dwParam1, DWORD dwParam2); */
/* EPP DWORD WINAPI mciSendCommandA(UINT wDevID, UINT wMsg, DWORD dwParam1, DWORD dwParam2); */
...
@@ -107,10 +107,10 @@ static DWORD CALLBACK MCI_SCAStarter(LPVOID arg)
...
@@ -107,10 +107,10 @@ static DWORD CALLBACK MCI_SCAStarter(LPVOID arg)
struct
SCA
*
sca
=
(
struct
SCA
*
)
arg
;
struct
SCA
*
sca
=
(
struct
SCA
*
)
arg
;
DWORD
ret
;
DWORD
ret
;
TRACE
(
"In thread before async command (%08x,%u,%08
x,%08
x)
\n
"
,
TRACE
(
"In thread before async command (%08x,%u,%08
lx,%08l
x)
\n
"
,
sca
->
wDevID
,
sca
->
wMsg
,
sca
->
dwParam1
,
sca
->
dwParam2
);
sca
->
wDevID
,
sca
->
wMsg
,
sca
->
dwParam1
,
sca
->
dwParam2
);
ret
=
mciSendCommandA
(
sca
->
wDevID
,
sca
->
wMsg
,
sca
->
dwParam1
|
MCI_WAIT
,
sca
->
dwParam2
);
ret
=
mciSendCommandA
(
sca
->
wDevID
,
sca
->
wMsg
,
sca
->
dwParam1
|
MCI_WAIT
,
sca
->
dwParam2
);
TRACE
(
"In thread after async command (%08x,%u,%08
x,%08
x)
\n
"
,
TRACE
(
"In thread after async command (%08x,%u,%08
lx,%08l
x)
\n
"
,
sca
->
wDevID
,
sca
->
wMsg
,
sca
->
dwParam1
,
sca
->
dwParam2
);
sca
->
wDevID
,
sca
->
wMsg
,
sca
->
dwParam1
,
sca
->
dwParam2
);
HeapFree
(
GetProcessHeap
(),
0
,
sca
);
HeapFree
(
GetProcessHeap
(),
0
,
sca
);
ExitThread
(
ret
);
ExitThread
(
ret
);
...
@@ -122,8 +122,8 @@ static DWORD CALLBACK MCI_SCAStarter(LPVOID arg)
...
@@ -122,8 +122,8 @@ static DWORD CALLBACK MCI_SCAStarter(LPVOID arg)
/**************************************************************************
/**************************************************************************
* MCI_SendCommandAsync [internal]
* MCI_SendCommandAsync [internal]
*/
*/
static
DWORD
MCI_SendCommandAsync
(
UINT
wDevID
,
UINT
wMsg
,
DWORD
dwParam1
,
static
DWORD
MCI_SendCommandAsync
(
UINT
wDevID
,
UINT
wMsg
,
DWORD
_PTR
dwParam1
,
DWORD
dwParam2
,
UINT
size
)
DWORD
_PTR
dwParam2
,
UINT
size
)
{
{
HANDLE
handle
;
HANDLE
handle
;
struct
SCA
*
sca
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
SCA
)
+
size
);
struct
SCA
*
sca
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
SCA
)
+
size
);
...
@@ -136,7 +136,7 @@ static DWORD MCI_SendCommandAsync(UINT wDevID, UINT wMsg, DWORD dwParam1,
...
@@ -136,7 +136,7 @@ static DWORD MCI_SendCommandAsync(UINT wDevID, UINT wMsg, DWORD dwParam1,
sca
->
dwParam1
=
dwParam1
;
sca
->
dwParam1
=
dwParam1
;
if
(
size
&&
dwParam2
)
{
if
(
size
&&
dwParam2
)
{
sca
->
dwParam2
=
(
DWORD
)
sca
+
sizeof
(
struct
SCA
);
sca
->
dwParam2
=
(
DWORD
_PTR
)
sca
+
sizeof
(
struct
SCA
);
/* copy structure passed by program in dwParam2 to be sure
/* copy structure passed by program in dwParam2 to be sure
* we can still use it whatever the program does
* we can still use it whatever the program does
*/
*/
...
@@ -175,7 +175,7 @@ static DWORD MIDI_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
...
@@ -175,7 +175,7 @@ static DWORD MIDI_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
return
0
;
return
0
;
wmm
->
wDevID
=
modp
->
wDeviceID
;
wmm
->
wDevID
=
modp
->
wDeviceID
;
mciSetDriverData
(
wmm
->
wDevID
,
(
DWORD
)
wmm
);
mciSetDriverData
(
wmm
->
wDevID
,
(
DWORD
_PTR
)
wmm
);
modp
->
wCustomCommandTable
=
MCI_NO_COMMAND_TABLE
;
modp
->
wCustomCommandTable
=
MCI_NO_COMMAND_TABLE
;
modp
->
wType
=
MCI_DEVTYPE_SEQUENCER
;
modp
->
wType
=
MCI_DEVTYPE_SEQUENCER
;
return
modp
->
wDeviceID
;
return
modp
->
wDeviceID
;
...
@@ -935,7 +935,7 @@ static DWORD MIDI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
...
@@ -935,7 +935,7 @@ static DWORD MIDI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
if
(
!
(
dwFlags
&
MCI_WAIT
))
{
if
(
!
(
dwFlags
&
MCI_WAIT
))
{
/** FIXME: I'm not 100% sure that wNotifyDeviceID is the right value in all cases ??? */
/** FIXME: I'm not 100% sure that wNotifyDeviceID is the right value in all cases ??? */
return
MCI_SendCommandAsync
(
wmm
->
wNotifyDeviceID
,
MCI_PLAY
,
dwFlags
,
(
DWORD
)
lpParms
,
sizeof
(
LPMCI_PLAY_PARMS
));
return
MCI_SendCommandAsync
(
wmm
->
wNotifyDeviceID
,
MCI_PLAY
,
dwFlags
,
(
DWORD
_PTR
)
lpParms
,
sizeof
(
LPMCI_PLAY_PARMS
));
}
}
if
(
lpParms
&&
(
dwFlags
&
MCI_FROM
))
{
if
(
lpParms
&&
(
dwFlags
&
MCI_FROM
))
{
...
...
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