Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
cracyc committed Jan 23, 2025
1 parent 25ec188 commit e441f6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion msdos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24853,7 +24853,7 @@ void VDDSimulateInterrupt(int ms, BYTE line, int count)
#ifdef ENABLE_DEBUG_LOG
fprintf(fp_debug_log, "VDDSimulateInterrupt %d %d %d\n", ms, line, count);
#endif
// protected mode programs need the isr bit set to avoid confusing irqs with faults in irq 8-f
// protected mode programs need the isr bit set to avoid confusing irqs with faults in int 8-f
if ((ms == 0 || ms == 1) && (line >= 0 && line < 8) && (count > 0)) {
pic_req(ms, line, 1);
}
Expand Down
14 changes: 7 additions & 7 deletions ntvdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1170,27 +1170,27 @@ __declspec(dllexport) DWORD WOWSysErrorBox(LPCSTR title, LPCSTR message, ULONG b
{
case (1 << kBtnOk) | (1 << kBtnCancel):
case (1 << kBtnOk) | (1 << kBtnClose):
btn |= MB_OKCANCEL;
mbbtn |= MB_OKCANCEL;
break;
case (1 << kBtnAbort) | (1 << kBtnRetry) | (1 << kBtnIgnore):
btn |= MB_ABORTRETRYIGNORE;
mbbtn |= MB_ABORTRETRYIGNORE;
break;
case (1 << kBtnCancel) | (1 << kBtnRetry) | (1 << kBtnClose):
btn |= MB_CANCELTRYCONTINUE;
mbbtn |= MB_CANCELTRYCONTINUE;
break;
case (1 << kBtnYes) | (1 << kBtnNo):
btn |= MB_YESNO;
mbbtn |= MB_YESNO;
break;
case (1 << kBtnYes) | (1 << kBtnNo) | (1 << kBtnCancel):
case (1 << kBtnYes) | (1 << kBtnNo) | (1 << kBtnClose):
btn |= MB_YESNOCANCEL;
mbbtn |= MB_YESNOCANCEL;
break;
case (1 << kBtnRetry) | (1 << kBtnCancel):
case (1 << kBtnRetry) | (1 << kBtnClose):
btn |= MB_RETRYCANCEL;
mbbtn |= MB_RETRYCANCEL;
break;
default:
btn |= MB_OK;
mbbtn |= MB_OK;
break;
}
int ret = MessageBoxA(NULL, title, message, mbbtn);
Expand Down

0 comments on commit e441f6b

Please sign in to comment.