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
2dcc12aa
Commit
2dcc12aa
authored
Mar 12, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Avoid TRUE FALSE conditional expressions.
parent
40d30cf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sync.c
dlls/kernel32/sync.c
+3
-3
No files found.
dlls/kernel32/sync.c
View file @
2dcc12aa
...
...
@@ -1398,9 +1398,9 @@ HANDLE WINAPI CreateNamedPipeW( LPCWSTR name, DWORD dwOpenMode,
options
=
0
;
if
(
dwOpenMode
&
FILE_FLAG_WRITE_THROUGH
)
options
|=
FILE_WRITE_THROUGH
;
if
(
!
(
dwOpenMode
&
FILE_FLAG_OVERLAPPED
))
options
|=
FILE_SYNCHRONOUS_IO_NONALERT
;
pipe_type
=
(
dwPipeMode
&
PIPE_TYPE_MESSAGE
)
?
TRUE
:
FALSE
;
read_mode
=
(
dwPipeMode
&
PIPE_READMODE_MESSAGE
)
?
TRUE
:
FALSE
;
non_block
=
(
dwPipeMode
&
PIPE_NOWAIT
)
?
TRUE
:
FALSE
;
pipe_type
=
(
dwPipeMode
&
PIPE_TYPE_MESSAGE
)
!=
0
;
read_mode
=
(
dwPipeMode
&
PIPE_READMODE_MESSAGE
)
!=
0
;
non_block
=
(
dwPipeMode
&
PIPE_NOWAIT
)
!=
0
;
if
(
nMaxInstances
>=
PIPE_UNLIMITED_INSTANCES
)
nMaxInstances
=
~
0U
;
timeout
.
QuadPart
=
(
ULONGLONG
)
nDefaultTimeOut
*
-
10000
;
...
...
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