kernel32: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
43b8858986
commit
97512d70cf
|
@ -78,7 +78,7 @@ static RTL_ATOM_TABLE get_local_table(DWORD entries)
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI InitAtomTable( DWORD entries )
|
BOOL WINAPI InitAtomTable( DWORD entries )
|
||||||
{
|
{
|
||||||
return get_local_table( entries ) ? TRUE : FALSE;
|
return get_local_table( entries ) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
|
|
|
@ -1383,7 +1383,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
|
||||||
qos.Length = sizeof(qos);
|
qos.Length = sizeof(qos);
|
||||||
qos.ImpersonationLevel = (attributes >> 16) & 0x3;
|
qos.ImpersonationLevel = (attributes >> 16) & 0x3;
|
||||||
qos.ContextTrackingMode = attributes & SECURITY_CONTEXT_TRACKING ? SECURITY_DYNAMIC_TRACKING : SECURITY_STATIC_TRACKING;
|
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;
|
attr.SecurityQualityOfService = &qos;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -3397,7 +3397,7 @@ static BOOL NLS_EnumSystemLanguageGroups(ENUMLANGUAGEGROUP_CALLBACKS *lpProcs)
|
||||||
if (NLS_RegEnumValue( hKey, ulIndex, szNumber, sizeof(szNumber),
|
if (NLS_RegEnumValue( hKey, ulIndex, szNumber, sizeof(szNumber),
|
||||||
szValue, sizeof(szValue) ))
|
szValue, sizeof(szValue) ))
|
||||||
{
|
{
|
||||||
BOOL bInstalled = szValue[0] == '1' ? TRUE : FALSE;
|
BOOL bInstalled = szValue[0] == '1';
|
||||||
LGRPID lgrpid = strtoulW( szNumber, NULL, 16 );
|
LGRPID lgrpid = strtoulW( szNumber, NULL, 16 );
|
||||||
|
|
||||||
TRACE("grpid %s (%sinstalled)\n", debugstr_w(szNumber),
|
TRACE("grpid %s (%sinstalled)\n", debugstr_w(szNumber),
|
||||||
|
|
|
@ -319,7 +319,7 @@ HANDLE WINAPI CreateToolhelp32Snapshot( DWORD flags, DWORD process )
|
||||||
if (flags & TH32CS_SNAPTHREAD) sect_size += num_thd * sizeof(THREADENTRY32);
|
if (flags & TH32CS_SNAPTHREAD) sect_size += num_thd * sizeof(THREADENTRY32);
|
||||||
if (flags & TH32CS_SNAPHEAPLIST)FIXME("Unimplemented: heap list snapshot\n");
|
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;
|
sa.lpSecurityDescriptor = NULL;
|
||||||
|
|
||||||
hSnapShot = CreateFileMappingW( INVALID_HANDLE_VALUE, &sa,
|
hSnapShot = CreateFileMappingW( INVALID_HANDLE_VALUE, &sa,
|
||||||
|
|
Loading…
Reference in New Issue