Fix problem of "invisible" helper apps on OS/2. NSPRPUB_PRE_4_2_CLIENT_BRANCH
authorseawood%netscape.com
Sat, 16 Feb 2002 02:17:58 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 2258 bdf7c17d9c099e7d54dcabf0b4872e34b3cb1d5d
parent 2245 fa7d1f10f4d8ac379aa443654008333c618b3ca3
child 2260 d2d2527066f7f6329168a6bdac4f38d72d1b53bd
push idunknown
push userunknown
push dateunknown
bugs125183
Fix problem of "invisible" helper apps on OS/2. Thanks to Mike Kaply <mkaply@us.ibm.com> for the patch. Bug #125183 r=wtc
pr/src/md/os2/os2misc.c
--- a/pr/src/md/os2/os2misc.c
+++ b/pr/src/md/os2/os2misc.c
@@ -379,17 +379,17 @@ PRProcess * _PR_CreateOS2Process(
           }
        }
     }
     if (ulAppType == 0) {
        PR_SetError(PR_UNKNOWN_ERROR, 0);
        goto errorExit;
     }
  
-    if (ulAppType & FAPPTYP_WINDOWAPI) {
+    if ((ulAppType & FAPPTYP_WINDOWAPI) == FAPPTYP_WINDOWAPI) {
         startData.SessionType = SSF_TYPE_PM;
     }
     else if (ulAppType & FAPPTYP_WINDOWCOMPAT) {
         startData.SessionType = SSF_TYPE_WINDOWABLEVIO;
     }
     else {
         startData.SessionType = SSF_TYPE_DEFAULT;
     }
@@ -409,17 +409,17 @@ PRProcess * _PR_CreateOS2Process(
         startData.PgmInputs = pszFormatResult;
     } else {
         strcpy(pszEXEName, path);
         startData.PgmInputs = cmdLine;
     }
     startData.PgmName = pszEXEName;
  
     startData.Length = sizeof(startData);
-    startData.Related = SSF_RELATED_CHILD;
+    startData.Related = SSF_RELATED_INDEPENDENT;
     startData.ObjectBuffer = pszObjectBuffer;
     startData.ObjectBuffLen = CCHMAXPATH;
     startData.Environment = envBlock;
  
     rc = DosStartSession(&startData, &ulAppType, &pid);
 
     if ((rc != NO_ERROR) && (rc != ERROR_SMG_START_IN_BACKGROUND)) {
         PR_SetError(PR_UNKNOWN_ERROR, 0);