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
94d9cfad
Commit
94d9cfad
authored
Jan 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Fix handle casting warnings on 64-bit.
parent
796197d9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
capture.c
dlls/winmm/tests/capture.c
+3
-3
wave.c
dlls/winmm/tests/wave.c
+6
-6
No files found.
dlls/winmm/tests/capture.c
View file @
94d9cfad
...
...
@@ -148,7 +148,7 @@ static void wave_in_test_deviceIn(int device, LPWAVEFORMATEX pwfx, DWORD format,
return
;
win
=
NULL
;
rc
=
waveInOpen
(
&
win
,
device
,
pwfx
,(
DWORD
)
hevent
,
0
,
CALLBACK_EVENT
|
flags
);
rc
=
waveInOpen
(
&
win
,
device
,
pwfx
,(
DWORD
_PTR
)
hevent
,
0
,
CALLBACK_EVENT
|
flags
);
/* Note: Win9x doesn't know WAVE_FORMAT_DIRECT */
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
MMSYSERR_BADDEVICEID
||
rc
==
MMSYSERR_NOTENABLED
||
rc
==
MMSYSERR_NODRIVER
||
...
...
@@ -255,7 +255,7 @@ static void wave_in_test_deviceIn(int device, LPWAVEFORMATEX pwfx, DWORD format,
HWAVEOUT
wout
;
trace
(
"Playing back recorded sound
\n
"
);
rc
=
waveOutOpen
(
&
wout
,
WAVE_MAPPER
,
pwfx
,(
DWORD
)
hevent
,
0
,
CALLBACK_EVENT
);
rc
=
waveOutOpen
(
&
wout
,
WAVE_MAPPER
,
pwfx
,(
DWORD
_PTR
)
hevent
,
0
,
CALLBACK_EVENT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
MMSYSERR_BADDEVICEID
||
rc
==
MMSYSERR_NOTENABLED
||
rc
==
MMSYSERR_NODRIVER
||
rc
==
MMSYSERR_ALLOCATED
||
...
...
@@ -295,7 +295,7 @@ static void wave_in_test_deviceIn(int device, LPWAVEFORMATEX pwfx, DWORD format,
CloseHandle
(
hevent
);
}
static
void
wave_in_test_device
(
int
device
)
static
void
wave_in_test_device
(
UINT_PTR
device
)
{
WAVEINCAPSA
capsA
;
WAVEINCAPSW
capsW
;
...
...
dlls/winmm/tests/wave.c
View file @
94d9cfad
...
...
@@ -604,8 +604,8 @@ static void wave_out_test_deviceOut(int device, double duration,
BOOL
has_volume
=
pcaps
->
dwSupport
&
WAVECAPS_VOLUME
?
TRUE
:
FALSE
;
double
paused
=
0
.
0
;
double
actual
;
DWORD
callback
=
0
;
DWORD
callback_instance
=
0
;
DWORD
_PTR
callback
=
0
;
DWORD
_PTR
callback_instance
=
0
;
HANDLE
thread
=
0
;
DWORD
thread_id
;
char
*
buffer
;
...
...
@@ -619,11 +619,11 @@ static void wave_out_test_deviceOut(int device, double duration,
return
;
if
((
flags
&
CALLBACK_TYPEMASK
)
==
CALLBACK_EVENT
)
{
callback
=
(
DWORD
)
hevent
;
callback
=
(
DWORD
_PTR
)
hevent
;
callback_instance
=
0
;
}
else
if
((
flags
&
CALLBACK_TYPEMASK
)
==
CALLBACK_FUNCTION
)
{
callback
=
(
DWORD
)
callback_func
;
callback_instance
=
(
DWORD
)
hevent
;
callback
=
(
DWORD
_PTR
)
callback_func
;
callback_instance
=
(
DWORD
_PTR
)
hevent
;
}
else
if
((
flags
&
CALLBACK_TYPEMASK
)
==
CALLBACK_THREAD
)
{
thread
=
CreateThread
(
NULL
,
0
,
callback_thread
,
hevent
,
0
,
&
thread_id
);
if
(
thread
)
{
...
...
@@ -827,7 +827,7 @@ EXIT:
HeapFree
(
GetProcessHeap
(),
0
,
frags
);
}
static
void
wave_out_test_device
(
int
device
)
static
void
wave_out_test_device
(
UINT_PTR
device
)
{
WAVEOUTCAPSA
capsA
;
WAVEOUTCAPSW
capsW
;
...
...
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