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
abef6ab3
Commit
abef6ab3
authored
Aug 09, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Avoid TRUE:FALSE conditional expressions.
parent
09737c7b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
nt.c
dlls/ntdll/nt.c
+2
-2
printf.c
dlls/ntdll/printf.c
+3
-3
rtlbitmap.c
dlls/ntdll/rtlbitmap.c
+1
-1
threadpool.c
dlls/ntdll/threadpool.c
+1
-1
No files found.
dlls/ntdll/nt.c
View file @
abef6ab3
...
...
@@ -610,7 +610,7 @@ NTSTATUS WINAPI NtPrivilegeCheck(
SERVER_START_REQ
(
check_token_privileges
)
{
req
->
handle
=
wine_server_obj_handle
(
ClientToken
);
req
->
all_required
=
(
(
RequiredPrivileges
->
Control
&
PRIVILEGE_SET_ALL_NECESSARY
)
?
TRUE
:
FALSE
)
;
req
->
all_required
=
(
RequiredPrivileges
->
Control
&
PRIVILEGE_SET_ALL_NECESSARY
)
!=
0
;
wine_server_add_data
(
req
,
RequiredPrivileges
->
Privilege
,
RequiredPrivileges
->
PrivilegeCount
*
sizeof
(
RequiredPrivileges
->
Privilege
[
0
])
);
wine_server_set_reply
(
req
,
RequiredPrivileges
->
Privilege
,
...
...
@@ -619,7 +619,7 @@ NTSTATUS WINAPI NtPrivilegeCheck(
status
=
wine_server_call
(
req
);
if
(
status
==
STATUS_SUCCESS
)
*
Result
=
(
reply
->
has_privileges
?
TRUE
:
FALSE
)
;
*
Result
=
reply
->
has_privileges
!=
0
;
}
SERVER_END_REQ
;
return
status
;
...
...
dlls/ntdll/printf.c
View file @
abef6ab3
...
...
@@ -244,7 +244,7 @@ static inline BOOL pf_is_integer_format( char fmt )
static
const
char
float_fmts
[]
=
"diouxX"
;
if
(
!
fmt
)
return
FALSE
;
return
strchr
(
float_fmts
,
fmt
)
?
TRUE
:
FALSE
;
return
strchr
(
float_fmts
,
fmt
)
!=
0
;
}
static
inline
BOOL
pf_is_double_format
(
char
fmt
)
...
...
@@ -252,7 +252,7 @@ static inline BOOL pf_is_double_format( char fmt )
static
const
char
float_fmts
[]
=
"aeEfgG"
;
if
(
!
fmt
)
return
FALSE
;
return
strchr
(
float_fmts
,
fmt
)
?
TRUE
:
FALSE
;
return
strchr
(
float_fmts
,
fmt
)
!=
0
;
}
static
inline
BOOL
pf_is_valid_format
(
char
fmt
)
...
...
@@ -260,7 +260,7 @@ static inline BOOL pf_is_valid_format( char fmt )
static
const
char
float_fmts
[]
=
"acCdeEfgGinouxX"
;
if
(
!
fmt
)
return
FALSE
;
return
strchr
(
float_fmts
,
fmt
)
?
TRUE
:
FALSE
;
return
strchr
(
float_fmts
,
fmt
)
!=
0
;
}
static
void
pf_rebuild_format_string
(
char
*
p
,
pf_flags
*
flags
)
...
...
dlls/ntdll/rtlbitmap.c
View file @
abef6ab3
...
...
@@ -956,7 +956,7 @@ static ULONG NTDLL_FindRuns(PCRTL_BITMAP lpBits, PRTL_BITMAP_RUN lpSeries,
ULONG
ulCount
,
BOOLEAN
bLongest
,
ULONG
(
*
fn
)(
PCRTL_BITMAP
,
ULONG
,
PULONG
))
{
BOOL
bNeedSort
=
ulCount
>
1
?
TRUE
:
FALSE
;
BOOL
bNeedSort
=
ulCount
>
1
;
ULONG
ulPos
=
0
,
ulRuns
=
0
;
TRACE
(
"(%p,%p,%d,%d)
\n
"
,
lpBits
,
lpSeries
,
ulCount
,
bLongest
);
...
...
dlls/ntdll/threadpool.c
View file @
abef6ab3
...
...
@@ -344,7 +344,7 @@ static DWORD CALLBACK wait_thread_proc(LPVOID Arg)
{
struct
wait_work_item
*
wait_work_item
=
Arg
;
NTSTATUS
status
;
BOOLEAN
alertable
=
(
wait_work_item
->
Flags
&
WT_EXECUTEINIOTHREAD
)
?
TRUE
:
FALSE
;
BOOLEAN
alertable
=
(
wait_work_item
->
Flags
&
WT_EXECUTEINIOTHREAD
)
!=
0
;
HANDLE
handles
[
2
]
=
{
wait_work_item
->
Object
,
wait_work_item
->
CancelEvent
};
LARGE_INTEGER
timeout
;
HANDLE
completion_event
;
...
...
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