[warnings,types] fix BOOL assingments

This commit is contained in:
akallabeth 2024-04-11 15:13:30 +02:00 committed by Martin Fleisz
parent 7b0723efd2
commit 2477b37128
3 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ static BOOL xf_keyboard_action_script_init(xfContext* xfc)
char* context = NULL;
strtok_s(buffer, "\n", &context);
if (!buffer || !ArrayList_Append(xfc->keyCombinations, buffer))
if (!ArrayList_Append(xfc->keyCombinations, buffer))
{
ArrayList_Free(xfc->keyCombinations);
xfc->actionScriptExists = FALSE;

View File

@ -2150,7 +2150,7 @@ BOOL freerdp_client_use_relative_mouse_events(rdpClientContext* ccontext)
const rdpSettings* settings = ccontext->context.settings;
const BOOL useRelative = freerdp_settings_get_bool(settings, FreeRDP_MouseUseRelativeMove);
const BOOL haveRelative = freerdp_settings_get_bool(settings, FreeRDP_HasRelativeMouseEvent);
BOOL ainput = false;
BOOL ainput = FALSE;
#if defined(CHANNEL_AINPUT_CLIENT)
ainput = ccontext->ainput != NULL;
#endif

View File

@ -1244,7 +1244,7 @@ static BOOL nla_read_ts_credentials(rdpNla* nla, SecBuffer* data)
WinPrAsn1_OctetString credentials = { 0 };
BOOL error = FALSE;
WinPrAsn1_INTEGER credType = -1;
BOOL ret = true;
BOOL ret = TRUE;
WINPR_ASSERT(nla);
WINPR_ASSERT(data);