Changeset 718


Ignore:
Timestamp:
Jul 2, 2007, 10:07:15 PM (13 years ago)
Author:
Steven Levine
Message:

Rework WORKPLACE_PROCESS check to match reality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r710 r718  
    2525  15 Jun 07 SHL Make OpenWatcom compatible
    2626  23 Jun 07 GKY Fix WORPLACE_PROCESS enviroment check logic
     27  28 Jun 07 SHL Rework WORKPLACE_PROCESS check to match reality
    2728
    2829***********************************************************************/
     
    628629    return FALSE;
    629630
    630   /* are we the workplace shell? */
     631  /* Are we the workplace shell? */
    631632  env = getenv("WORKPLACE_PROCESS");
    632   if (!env){
    633     env = getenv("WORKPLACE__PROCESS");
    634     if (!env || stricmp(env, "NO"))
    635       fWorkPlace = TRUE;
    636   }
    637   else{
    638     if (stricmp(env, "YES"))
    639       fWorkPlace = TRUE;
    640   }
     633  fWorkPlace = env != NULL &&
     634               (stricmp(env, "YES") == 0 || atoi(env) == 1);
     635
    641636  if ((!strchr(profile, '\\') && !strchr(profile, ':')) ||
    642637      !(fmprof = PrfOpenProfile((HAB) 0, profile))) {
Note: See TracChangeset for help on using the changeset viewer.