CORE-19191
Reproduce the same behaviour of the calculator for Windows XP when an error condition is met.
When the result is NaN and it cannot be printed, the error condition is cleared by pressing the CLEAR button.
case IDC_BUTTON_D:
case IDC_BUTTON_E:
case IDC_BUTTON_F:
- calc.is_nan = FALSE;
+ if (calc.is_nan) break;
build_operand(hWnd, LOWORD(wp));
return TRUE;
case IDC_BUTTON_PERCENT:
}
return TRUE;
case IDC_BUTTON_BACK:
+ if (calc.is_nan) break;
if (calc.sci_in) {
if (calc.esp == 0) {
TCHAR *ptr;