Subversion Repositories SvarDOS

Rev

Rev 1856 | Rev 1859 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1856 Rev 1857
Line 1073... Line 1073...
1073
  }
1073
  }
1074
 
1074
 
1075
  /* general (far) pointer to RMOD, useful to check some of its internal fields */
1075
  /* general (far) pointer to RMOD, useful to check some of its internal fields */
1076
  rmod_farptr = MK_FP(rmod->rmodseg, 0);
1076
  rmod_farptr = MK_FP(rmod->rmodseg, 0);
1077
 
1077
 
-
 
1078
  rmod_envseg = MK_FP(rmod->rmodseg, RMOD_OFFSET_ENVSEG);
-
 
1079
 
-
 
1080
  /* install a few guardvals in memory to detect some cases of overflows */
-
 
1081
  memguard_set(cmdlinebuf);
-
 
1082
 
1078
  /* if last operation was ended by CTRL+C then make sure to abort any
1083
  /* if last operation was ended by CTRL+C then make sure to abort any
1079
   * ongoing BAT file or FOR loop */
1084
   * ongoing BAT file or FOR loop */
1080
  if (rmod_farptr[RMOD_OFFSET_CTRLCFLAG] != 0) {
1085
  if (rmod_farptr[RMOD_OFFSET_CTRLCFLAG] != 0) {
1081
    outputnl("<last process interrupted through CTRL+C>");
1086
    outputnl("<last process interrupted through CTRL+C>");
1082
    rmod_farptr[RMOD_OFFSET_CTRLCFLAG] = 0;
1087
    rmod_farptr[RMOD_OFFSET_CTRLCFLAG] = 0;
1083
  }
1088
  }
1084
 
1089
 
1085
  /* install a few guardvals in memory to detect some cases of overflows */
-
 
1086
  memguard_set(cmdlinebuf);
-
 
1087
 
-
 
1088
  rmod_envseg = MK_FP(rmod->rmodseg, RMOD_OFFSET_ENVSEG);
-
 
1089
 
-
 
1090
  /* make COMSPEC point to myself */
1090
  /* make COMSPEC point to myself */
1091
  set_comspec_to_self(*rmod_envseg);
1091
  set_comspec_to_self(*rmod_envseg);
1092
 
1092
 
1093
  /* on /P check for the presence of AUTOEXEC.BAT and execute it if found,
1093
  /* on /P check for the presence of AUTOEXEC.BAT and execute it if found,
1094
   * but skip this check if /D was also passed */
1094
   * but skip this check if /D was also passed */