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
29b00e1a
Commit
29b00e1a
authored
May 31, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
midimap: Fix compilation warnings in 64-bit mode.
parent
0028eb55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
midimap.c
dlls/midimap/midimap.c
+12
-12
driver.c
dlls/winmm/driver.c
+8
-8
mmddk.h
include/mmddk.h
+2
-2
No files found.
dlls/midimap/midimap.c
View file @
29b00e1a
...
...
@@ -258,7 +258,7 @@ static BOOL MIDIMAP_LoadSettings(MIDIMAPDATA* mom)
return
ret
;
}
static
DWORD
modOpen
(
LPDWORD
lpdwUser
,
LPMIDIOPENDESC
lpDesc
,
DWORD
dwFlags
)
static
DWORD
modOpen
(
DWORD_PTR
*
lpdwUser
,
LPMIDIOPENDESC
lpDesc
,
DWORD
dwFlags
)
{
MIDIMAPDATA
*
mom
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
MIDIMAPDATA
));
...
...
@@ -268,7 +268,7 @@ static DWORD modOpen(LPDWORD lpdwUser, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
if
(
MIDIMAP_LoadSettings
(
mom
))
{
*
lpdwUser
=
(
DWORD
)
mom
;
*
lpdwUser
=
(
DWORD
_PTR
)
mom
;
mom
->
self
=
mom
;
return
MMSYSERR_NOERROR
;
...
...
@@ -304,7 +304,7 @@ static DWORD modClose(MIDIMAPDATA* mom)
return
ret
;
}
static
DWORD
modLongData
(
MIDIMAPDATA
*
mom
,
LPMIDIHDR
lpMidiHdr
,
DWORD
dwParam2
)
static
DWORD
modLongData
(
MIDIMAPDATA
*
mom
,
LPMIDIHDR
lpMidiHdr
,
DWORD_PTR
dwParam2
)
{
WORD
chn
;
DWORD
ret
=
MMSYSERR_NOERROR
;
...
...
@@ -328,7 +328,7 @@ static DWORD modLongData(MIDIMAPDATA* mom, LPMIDIHDR lpMidiHdr, DWORD dwParam2)
return
ret
;
}
static
DWORD
modData
(
MIDIMAPDATA
*
mom
,
DWORD
dwParam
)
static
DWORD
modData
(
MIDIMAPDATA
*
mom
,
DWORD_PTR
dwParam
)
{
BYTE
lb
=
LOBYTE
(
LOWORD
(
dwParam
));
WORD
chn
=
lb
&
0x0F
;
...
...
@@ -385,13 +385,13 @@ static DWORD modData(MIDIMAPDATA* mom, DWORD dwParam)
}
break
;
default:
FIXME
(
"ooch %
u
\n
"
,
dwParam
);
FIXME
(
"ooch %
lx
\n
"
,
dwParam
);
}
return
ret
;
}
static
DWORD
modPrepare
(
MIDIMAPDATA
*
mom
,
LPMIDIHDR
lpMidiHdr
,
DWORD
dwParam2
)
static
DWORD
modPrepare
(
MIDIMAPDATA
*
mom
,
LPMIDIHDR
lpMidiHdr
,
DWORD_PTR
dwParam2
)
{
if
(
MIDIMAP_IsBadData
(
mom
))
return
MMSYSERR_ERROR
;
if
(
lpMidiHdr
->
dwFlags
&
(
MHDR_ISSTRM
|
MHDR_PREPARED
))
...
...
@@ -401,7 +401,7 @@ static DWORD modPrepare(MIDIMAPDATA* mom, LPMIDIHDR lpMidiHdr, DWORD dwParam2)
return
MMSYSERR_NOERROR
;
}
static
DWORD
modUnprepare
(
MIDIMAPDATA
*
mom
,
LPMIDIHDR
lpMidiHdr
,
DWORD
dwParam2
)
static
DWORD
modUnprepare
(
MIDIMAPDATA
*
mom
,
LPMIDIHDR
lpMidiHdr
,
DWORD_PTR
dwParam2
)
{
if
(
MIDIMAP_IsBadData
(
mom
))
return
MMSYSERR_ERROR
;
if
((
lpMidiHdr
->
dwFlags
&
MHDR_ISSTRM
)
||
!
(
lpMidiHdr
->
dwFlags
&
MHDR_PREPARED
))
...
...
@@ -411,7 +411,7 @@ static DWORD modUnprepare(MIDIMAPDATA* mom, LPMIDIHDR lpMidiHdr, DWORD dwParam2)
return
MMSYSERR_NOERROR
;
}
static
DWORD
modGetDevCaps
(
UINT
wDevID
,
MIDIMAPDATA
*
mom
,
LPMIDIOUTCAPSW
lpMidiCaps
,
DWORD
size
)
static
DWORD
modGetDevCaps
(
UINT
wDevID
,
MIDIMAPDATA
*
mom
,
LPMIDIOUTCAPSW
lpMidiCaps
,
DWORD_PTR
size
)
{
static
const
WCHAR
name
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'm'
,
'i'
,
'd'
,
'i'
,
' '
,
'm'
,
'a'
,
'p'
,
'p'
,
'e'
,
'r'
,
0
};
lpMidiCaps
->
wMid
=
0x00FF
;
...
...
@@ -449,10 +449,10 @@ static DWORD modReset(MIDIMAPDATA* mom)
/**************************************************************************
* modMessage (MIDIMAP.@)
*/
DWORD
WINAPI
MIDIMAP_modMessage
(
UINT
wDevID
,
UINT
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
DWORD
WINAPI
MIDIMAP_modMessage
(
UINT
wDevID
,
UINT
wMsg
,
DWORD
_PTR
dwUser
,
DWORD
_PTR
dwParam1
,
DWORD_PTR
dwParam2
)
{
TRACE
(
"(%u, %04X, %08
X, %08X, %08
X);
\n
"
,
TRACE
(
"(%u, %04X, %08
lX, %08lX, %08l
X);
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
...
...
@@ -464,7 +464,7 @@ DWORD WINAPI MIDIMAP_modMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
/* FIXME: Pretend this is supported */
return
0
;
case
MODM_OPEN
:
return
modOpen
((
LPDWORD
)
dwUser
,
(
LPMIDIOPENDESC
)
dwParam1
,
dwParam2
);
case
MODM_OPEN
:
return
modOpen
((
DWORD_PTR
*
)
dwUser
,
(
LPMIDIOPENDESC
)
dwParam1
,
dwParam2
);
case
MODM_CLOSE
:
return
modClose
((
MIDIMAPDATA
*
)
dwUser
);
case
MODM_DATA
:
return
modData
((
MIDIMAPDATA
*
)
dwUser
,
dwParam1
);
...
...
dlls/winmm/driver.c
View file @
29b00e1a
...
...
@@ -569,25 +569,25 @@ LRESULT WINAPI DefDriverProc(DWORD_PTR dwDriverIdentifier, HDRVR hDrv,
/**************************************************************************
* DriverCallback [WINMM.@]
*/
BOOL
WINAPI
DriverCallback
(
DWORD
dwCallBack
,
UINT
uFlags
,
HDRVR
hDev
,
UINT
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
BOOL
WINAPI
DriverCallback
(
DWORD
_PTR
dwCallBack
,
DWORD
uFlags
,
HDRVR
hDev
,
DWORD
wMsg
,
DWORD_PTR
dwUser
,
DWORD_PTR
dwParam1
,
DWORD
_PTR
dwParam2
)
{
TRACE
(
"(%08
X, %04X, %p, %04X, %08X, %08X, %08X); !
\n
"
,
TRACE
(
"(%08
lX, %04X, %p, %04X, %08lX, %08lX, %08lX)
\n
"
,
dwCallBack
,
uFlags
,
hDev
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
switch
(
uFlags
&
DCB_TYPEMASK
)
{
case
DCB_NULL
:
TRACE
(
"Null !
\n
"
);
if
(
dwCallBack
)
WARN
(
"uFlags=%04X has null DCB value, but dwCallBack=%08X is not null !
\n
"
,
uFlags
,
dwCallBack
);
WARN
(
"uFlags=%04X has null DCB value, but dwCallBack=%08
l
X is not null !
\n
"
,
uFlags
,
dwCallBack
);
break
;
case
DCB_WINDOW
:
TRACE
(
"Window(%04X) handle=%p!
\n
"
,
dwCallBack
,
hDev
);
TRACE
(
"Window(%04
l
X) handle=%p!
\n
"
,
dwCallBack
,
hDev
);
PostMessageA
((
HWND
)
dwCallBack
,
wMsg
,
(
WPARAM
)
hDev
,
dwParam1
);
break
;
case
DCB_TASK
:
/* aka DCB_THREAD */
TRACE
(
"Task(%04x) !
\n
"
,
dwCallBack
);
TRACE
(
"Task(%04
l
x) !
\n
"
,
dwCallBack
);
PostThreadMessageA
(
dwCallBack
,
wMsg
,
(
WPARAM
)
hDev
,
dwParam1
);
break
;
case
DCB_FUNCTION
:
...
...
@@ -595,7 +595,7 @@ BOOL WINAPI DriverCallback(DWORD dwCallBack, UINT uFlags, HDRVR hDev,
((
LPDRVCALLBACK
)
dwCallBack
)(
hDev
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
break
;
case
DCB_EVENT
:
TRACE
(
"Event(%08x) !
\n
"
,
dwCallBack
);
TRACE
(
"Event(%08
l
x) !
\n
"
,
dwCallBack
);
SetEvent
((
HANDLE
)
dwCallBack
);
break
;
case
6
:
/* I would dub it DCB_MMTHREADSIGNAL */
...
...
include/mmddk.h
View file @
29b00e1a
...
...
@@ -446,8 +446,8 @@ BOOL WINAPI mciFreeCommandResource(UINT uTable);
#define DCB_TYPEMASK 0x0007
#define DCB_NOSWITCH 0x0008
/* don't switch stacks for callback */
BOOL
WINAPI
DriverCallback
(
DWORD
dwCallBack
,
UINT
uFlags
,
HDRVR
hDev
,
UINT
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
);
BOOL
WINAPI
DriverCallback
(
DWORD_PTR
dwCallBack
,
DWORD
uFlags
,
HDRVR
hDev
,
DWORD
wMsg
,
DWORD_PTR
dwUser
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
);
typedef
void
(
*
LPTASKCALLBACK
)(
DWORD
dwInst
);
...
...
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