winedbg: Avoid TRUE:FALSE conditional expressions.

This commit is contained in:
Michael Stefaniuc 2012-08-08 21:33:56 +02:00 committed by Alexandre Julliard
parent eeed445f44
commit 915e12e59f
2 changed files with 2 additions and 2 deletions

View File

@ -869,7 +869,7 @@ void be_arm_disasm_one_insn(ADDRESS64 *addr, int display)
if (!memory_get_register(CV_ARM_CPSR, &pval, tmp, sizeof(tmp)))
dbg_printf("\n\tmemory_get_register failed: %s", tmp);
else
db_disasm_thumb=(*pval & 0x20)?TRUE:FALSE;
db_disasm_thumb = (*pval & 0x20) != 0;
db_display = display;

View File

@ -549,7 +549,7 @@ void break_enable_xpoint(int num, BOOL enable)
dbg_printf("Invalid breakpoint number %d\n", num);
return;
}
dbg_curr_process->bp[num].enabled = (enable) ? TRUE : FALSE;
dbg_curr_process->bp[num].enabled = enable != 0;
dbg_curr_process->bp[num].skipcount = 0;
}