Subversion Repositories SvarDOS

Rev

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

Rev 450 Rev 453
Line 36... Line 36...
36
  unsigned long *myparent = (void *)0x0A;
36
  unsigned long *myparent = (void *)0x0A;
37
  unsigned short far *rmodenv_ptr = MK_FP(rmodseg, RMOD_OFFSET_ENVSEG);
37
  unsigned short far *rmodenv_ptr = MK_FP(rmodseg, RMOD_OFFSET_ENVSEG);
38
  unsigned short rmodenv = *rmodenv_ptr;
38
  unsigned short rmodenv = *rmodenv_ptr;
39
 
39
 
40
  /* detect "I am the origin shell" situations */
40
  /* detect "I am the origin shell" situations */
41
  if (rmod->origparent == 0xffff) return; /* original parent set to 0xffff (DOS-C / FreeDOS) */
-
 
42
  if (rmod->flags & FLAG_PERMANENT) return; /* COMMAND.COM /P */
41
  if (rmod->flags & FLAG_PERMANENT) return; /* COMMAND.COM /P */
-
 
42
  if (rmod->origparent == 0xffff) return; /* original parent set to 0xffff (DOS-C / FreeDOS) */
-
 
43
  if (rmod->origenvseg == 0) return; /* no original environment (MSDOS 5/6) */
43
 
44
 
44
  /* set my parent back to original value */
45
  /* set my parent back to original value */
45
  *myparent = rmod->origparent;
46
  *myparent = rmod->origparent;
46
 
47
 
47
  _asm {
48
  _asm {