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
2233f1eb
Commit
2233f1eb
authored
Aug 10, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Some 64-bit pointer fixes.
parent
92dca953
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
lolvldrv.c
dlls/winmm/lolvldrv.c
+5
-5
time.c
dlls/winmm/time.c
+5
-5
winemm.h
dlls/winmm/winemm.h
+3
-3
mmddk.h
include/mmddk.h
+2
-2
No files found.
dlls/winmm/lolvldrv.c
View file @
2233f1eb
...
...
@@ -273,8 +273,8 @@ LPWINE_MLD MMDRV_Alloc(UINT size, UINT type, LPHANDLE hndl, DWORD* dwFlags,
if
(
llTypes
[
type
].
Callback
)
{
*
dwFlags
=
LOWORD
(
*
dwFlags
)
|
CALLBACK_FUNCTION
;
*
dwCallback
=
(
DWORD
)
llTypes
[
type
].
Callback
;
*
dwInstance
=
(
DWORD
)
mld
;
/* FIXME: wouldn't some 16 bit drivers only use the loword ? */
*
dwCallback
=
(
DWORD
_PTR
)
llTypes
[
type
].
Callback
;
*
dwInstance
=
(
DWORD
_PTR
)
mld
;
/* FIXME: wouldn't some 16 bit drivers only use the loword ? */
}
return
mld
;
...
...
@@ -421,12 +421,12 @@ LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType,
/**************************************************************************
* MMDRV_PhysicalFeatures [internal]
*/
UINT
MMDRV_PhysicalFeatures
(
LPWINE_MLD
mld
,
UINT
uMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
)
UINT
MMDRV_PhysicalFeatures
(
LPWINE_MLD
mld
,
UINT
uMsg
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
)
{
WINE_MM_DRIVER
*
lpDrv
=
&
MMDrvs
[
mld
->
mmdIndex
];
TRACE
(
"(%p, %04x, %08
x, %08
x)
\n
"
,
mld
,
uMsg
,
dwParam1
,
dwParam2
);
TRACE
(
"(%p, %04x, %08
lx, %08l
x)
\n
"
,
mld
,
uMsg
,
dwParam1
,
dwParam2
);
/* all those function calls are undocumented */
switch
(
uMsg
)
{
...
...
dlls/winmm/time.c
View file @
2233f1eb
...
...
@@ -55,7 +55,7 @@ typedef struct tagWINE_TIMERENTRY {
UINT
wDelay
;
UINT
wResol
;
LPTIMECALLBACK
lpFunc
;
/* can be lots of things */
DWORD
dwUser
;
DWORD
_PTR
dwUser
;
UINT16
wFlags
;
UINT16
wTimerID
;
DWORD
dwTriggerTime
;
...
...
@@ -170,7 +170,7 @@ static int TIME_MMSysTimeCallback(void)
break
;
case
TIME_CALLBACK_FUNCTION
:
{
DWORD
user
=
timer
->
dwUser
;
DWORD
_PTR
user
=
timer
->
dwUser
;
UINT16
id
=
timer
->
wTimerID
;
UINT16
flags
=
timer
->
wFlags
;
LPTIMECALLBACK
func
=
timer
->
lpFunc
;
...
...
@@ -179,7 +179,7 @@ static int TIME_MMSysTimeCallback(void)
LeaveCriticalSection
(
&
WINMM_cs
);
if
(
flags
&
WINE_TIMER_IS32
)
func
(
id
,
0
,
user
,
0
,
0
);
else
if
(
pFnCallMMDrvFunc16
)
pFnCallMMDrvFunc16
((
DWORD
)
func
,
id
,
0
,
user
,
0
,
0
);
else
if
(
pFnCallMMDrvFunc16
)
pFnCallMMDrvFunc16
((
DWORD
_PTR
)
func
,
id
,
0
,
user
,
0
,
0
);
EnterCriticalSection
(
&
WINMM_cs
);
if
(
flags
&
TIME_KILL_SYNCHRONOUS
)
LeaveCriticalSection
(
&
TIME_cbcrst
);
...
...
@@ -294,14 +294,14 @@ MMRESULT WINAPI timeGetSystemTime(LPMMTIME lpTime, UINT wSize)
* TIME_SetEventInternal [internal]
*/
WORD
TIME_SetEventInternal
(
UINT
wDelay
,
UINT
wResol
,
LPTIMECALLBACK
lpFunc
,
DWORD
dwUser
,
UINT
wFlags
)
LPTIMECALLBACK
lpFunc
,
DWORD
_PTR
dwUser
,
UINT
wFlags
)
{
WORD
wNewID
=
0
;
LPWINE_TIMERENTRY
lpNewTimer
;
LPWINE_TIMERENTRY
lpTimer
;
const
char
c
=
'c'
;
TRACE
(
"(%u, %u, %p, %08X, %04X);
\n
"
,
wDelay
,
wResol
,
lpFunc
,
dwUser
,
wFlags
);
TRACE
(
"(%u, %u, %p, %08
l
X, %04X);
\n
"
,
wDelay
,
wResol
,
lpFunc
,
dwUser
,
wFlags
);
if
(
wDelay
<
MMSYSTIME_MININTERVAL
||
wDelay
>
MMSYSTIME_MAXINTERVAL
)
return
0
;
...
...
dlls/winmm/winemm.h
View file @
2233f1eb
...
...
@@ -59,7 +59,7 @@ typedef struct tagWINE_DRIVER
}
WINE_DRIVER
,
*
LPWINE_DRIVER
;
typedef
DWORD
(
CALLBACK
*
WINEMM_msgFunc16
)(
UINT16
,
WORD
,
DWORD
,
DWORD
,
DWORD
);
typedef
DWORD
(
CALLBACK
*
WINEMM_msgFunc32
)(
UINT
,
UINT
,
DWORD
,
DWORD
,
DWORD
);
typedef
DWORD
(
CALLBACK
*
WINEMM_msgFunc32
)(
UINT
,
UINT
,
DWORD
_PTR
,
DWORD_PTR
,
DWORD_PTR
);
/* for each loaded driver and each known type of driver, this structure contains
* the information needed to access it
...
...
@@ -196,7 +196,7 @@ DWORD MMDRV_Close(LPWINE_MLD mld, UINT wMsg);
LPWINE_MLD
MMDRV_Get
(
HANDLE
hndl
,
UINT
type
,
BOOL
bCanBeID
);
LPWINE_MLD
MMDRV_GetRelated
(
HANDLE
hndl
,
UINT
srcType
,
BOOL
bSrcCanBeID
,
UINT
dstTyped
);
DWORD
MMDRV_Message
(
LPWINE_MLD
mld
,
UINT
wMsg
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
,
BOOL
bFrom32
);
UINT
MMDRV_PhysicalFeatures
(
LPWINE_MLD
mld
,
UINT
uMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
);
UINT
MMDRV_PhysicalFeatures
(
LPWINE_MLD
mld
,
UINT
uMsg
,
DWORD
_PTR
dwParam1
,
DWORD_PTR
dwParam2
);
BOOL
MMDRV_Is32
(
unsigned
int
);
void
MMDRV_InstallMap
(
unsigned
int
,
MMDRV_MAPFUNC
,
MMDRV_UNMAPFUNC
,
MMDRV_MAPFUNC
,
MMDRV_UNMAPFUNC
,
LPDRVCALLBACK
);
...
...
@@ -240,7 +240,7 @@ LRESULT MMIO_SendMessage(HMMIO hmmio, UINT uMessage, LPARAM lParam1,
LPWINE_MMIO
MMIO_Get
(
HMMIO
h
);
WORD
TIME_SetEventInternal
(
UINT
wDelay
,
UINT
wResol
,
LPTIMECALLBACK
lpFunc
,
DWORD
dwUser
,
UINT
wFlags
);
DWORD
_PTR
dwUser
,
UINT
wFlags
);
void
TIME_MMTimeStop
(
void
);
/* Global variables */
...
...
include/mmddk.h
View file @
2233f1eb
...
...
@@ -413,8 +413,8 @@ typedef struct tMIXEROPENDESC
{
HMIXEROBJ
hmx
;
LPVOID
pReserved0
;
DWORD
dwCallback
;
DWORD
dwInstance
;
DWORD
_PTR
dwCallback
;
DWORD
_PTR
dwInstance
;
}
MIXEROPENDESC
,
*
LPMIXEROPENDESC
;
typedef
struct
{
...
...
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