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
d94eaa3b
Commit
d94eaa3b
authored
Jul 31, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Avoid TRUE FALSE conditional expressions.
parent
e6ad25ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
mmio.c
dlls/winmm/mmio.c
+1
-1
playsound.c
dlls/winmm/playsound.c
+1
-1
wave.c
dlls/winmm/tests/wave.c
+1
-1
waveform.c
dlls/winmm/waveform.c
+1
-1
No files found.
dlls/winmm/mmio.c
View file @
d94eaa3b
...
...
@@ -481,7 +481,7 @@ static BOOL MMIO_Destroy(LPWINE_MMIO wm)
wm
=
NULL
;
}
LeaveCriticalSection
(
&
WINMM_cs
);
return
wm
?
FALSE
:
TRUE
;
return
!
wm
;
}
/****************************************************************
...
...
dlls/winmm/playsound.c
View file @
d94eaa3b
...
...
@@ -525,7 +525,7 @@ static BOOL MULTIMEDIA_PlaySound(const void* pszSound, HMODULE hmod, DWORD fdwSo
if
(
fdwSound
&
SND_ASYNC
)
{
HANDLE
handle
;
wps
->
bLoop
=
(
fdwSound
&
SND_LOOP
)
?
TRUE
:
FALSE
;
wps
->
bLoop
=
(
fdwSound
&
SND_LOOP
)
!=
0
;
if
((
handle
=
CreateThread
(
NULL
,
0
,
proc_PlaySound
,
wps
,
0
,
NULL
))
!=
0
)
{
SetThreadPriority
(
handle
,
THREAD_PRIORITY_TIME_CRITICAL
);
CloseHandle
(
handle
);
...
...
dlls/winmm/tests/wave.c
View file @
d94eaa3b
...
...
@@ -605,7 +605,7 @@ static void wave_out_test_deviceOut(int device, double duration,
WORD
nChannels
=
pwfx
->
nChannels
;
WORD
wBitsPerSample
=
pwfx
->
wBitsPerSample
;
DWORD
nSamplesPerSec
=
pwfx
->
nSamplesPerSec
;
BOOL
has_volume
=
pcaps
->
dwSupport
&
WAVECAPS_VOLUME
?
TRUE
:
FALSE
;
BOOL
has_volume
=
(
pcaps
->
dwSupport
&
WAVECAPS_VOLUME
)
!=
0
;
double
paused
=
0
.
0
;
DWORD_PTR
callback
=
0
;
DWORD_PTR
callback_instance
=
0
;
...
...
dlls/winmm/waveform.c
View file @
d94eaa3b
...
...
@@ -1778,7 +1778,7 @@ static LRESULT WINMM_Reset(HWAVE hwave)
IAudioClient_Reset
(
device
->
client
);
cb_info
=
device
->
cb_info
;
is_out
=
device
->
render
?
TRUE
:
FALSE
;
is_out
=
device
->
render
!=
NULL
;
LeaveCriticalSection
(
&
device
->
lock
);
...
...
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