Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
97512d70
Commit
97512d70
authored
Jul 31, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Avoid TRUE:FALSE conditional expressions.
parent
43b88589
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
atom.c
dlls/kernel32/atom.c
+1
-1
file.c
dlls/kernel32/file.c
+1
-1
locale.c
dlls/kernel32/locale.c
+1
-1
toolhelp.c
dlls/kernel32/toolhelp.c
+1
-1
No files found.
dlls/kernel32/atom.c
View file @
97512d70
...
...
@@ -78,7 +78,7 @@ static RTL_ATOM_TABLE get_local_table(DWORD entries)
*/
BOOL
WINAPI
InitAtomTable
(
DWORD
entries
)
{
return
get_local_table
(
entries
)
?
TRUE
:
FALSE
;
return
get_local_table
(
entries
)
!=
0
;
}
/******************************************************************
...
...
dlls/kernel32/file.c
View file @
97512d70
...
...
@@ -1383,7 +1383,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
qos
.
Length
=
sizeof
(
qos
);
qos
.
ImpersonationLevel
=
(
attributes
>>
16
)
&
0x3
;
qos
.
ContextTrackingMode
=
attributes
&
SECURITY_CONTEXT_TRACKING
?
SECURITY_DYNAMIC_TRACKING
:
SECURITY_STATIC_TRACKING
;
qos
.
EffectiveOnly
=
attributes
&
SECURITY_EFFECTIVE_ONLY
?
TRUE
:
FALSE
;
qos
.
EffectiveOnly
=
(
attributes
&
SECURITY_EFFECTIVE_ONLY
)
!=
0
;
attr
.
SecurityQualityOfService
=
&
qos
;
}
else
...
...
dlls/kernel32/locale.c
View file @
97512d70
...
...
@@ -3397,7 +3397,7 @@ static BOOL NLS_EnumSystemLanguageGroups(ENUMLANGUAGEGROUP_CALLBACKS *lpProcs)
if
(
NLS_RegEnumValue
(
hKey
,
ulIndex
,
szNumber
,
sizeof
(
szNumber
),
szValue
,
sizeof
(
szValue
)
))
{
BOOL
bInstalled
=
szValue
[
0
]
==
'1'
?
TRUE
:
FALSE
;
BOOL
bInstalled
=
szValue
[
0
]
==
'1'
;
LGRPID
lgrpid
=
strtoulW
(
szNumber
,
NULL
,
16
);
TRACE
(
"grpid %s (%sinstalled)
\n
"
,
debugstr_w
(
szNumber
),
...
...
dlls/kernel32/toolhelp.c
View file @
97512d70
...
...
@@ -319,7 +319,7 @@ HANDLE WINAPI CreateToolhelp32Snapshot( DWORD flags, DWORD process )
if
(
flags
&
TH32CS_SNAPTHREAD
)
sect_size
+=
num_thd
*
sizeof
(
THREADENTRY32
);
if
(
flags
&
TH32CS_SNAPHEAPLIST
)
FIXME
(
"Unimplemented: heap list snapshot
\n
"
);
sa
.
bInheritHandle
=
(
flags
&
TH32CS_INHERIT
)
?
TRUE
:
FALSE
;
sa
.
bInheritHandle
=
(
flags
&
TH32CS_INHERIT
)
!=
0
;
sa
.
lpSecurityDescriptor
=
NULL
;
hSnapShot
=
CreateFileMappingW
(
INVALID_HANDLE_VALUE
,
&
sa
,
...
...
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