aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/doscmd/files/patch-trap.c
blob: 8db98e35cf1c0b74243e47a8a72c01d51d925507 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- trap.c.orig 2011-08-26 16:48:21 UTC
+++ trap.c
@@ -295,7 +295,7 @@ sigbus(struct sigframe *sf)
     callback_t     func;
     regcontext_t   *REGS = (regcontext_t *)(&sf->sf_uc.uc_mcontext);
 
-    if (!(R_EFLAGS && PSL_VM))
+    if (!(R_EFLAGS & PSL_VM))
    fatal("SIGBUS in the emulator\n");
 
     if ((int)sf->sf_siginfo != 0) {