Bugzilla bug 265219: go to errorExit on DosStartSession failure. r=mkaply.
authorwchang0222%aol.com
Fri, 05 Nov 2004 23:22:37 +0000
changeset 3211 16e0b1e7e8257b605eae1a7ccec0eed43c748932
parent 3208 499a46768815848fa3ca08c5d1ab02565c29eee7
child 3215 109e4019e61e5291caeb0075889ddca38578315d
push idunknown
push userunknown
push dateunknown
reviewersmkaply
bugs265219
Bugzilla bug 265219: go to errorExit on DosStartSession failure. r=mkaply.
pr/src/md/os2/os2misc.c
--- a/pr/src/md/os2/os2misc.c
+++ b/pr/src/md/os2/os2misc.c
@@ -421,17 +421,18 @@ PRProcess * _PR_CreateOS2Process(
     } else {	
         /*
          * If no STDIN/STDOUT redirection is not needed, use DosStartSession
          * to create a new, independent session
          */
         rc = DosStartSession(&startData, &ulAppType, &pid);
 
         if ((rc != NO_ERROR) && (rc != ERROR_SMG_START_IN_BACKGROUND)) {
-            PR_SetError(PR_UNKNOWN_ERROR, 0);
+            PR_SetError(PR_UNKNOWN_ERROR, rc);
+            goto errorExit;
         }
  
         proc->md.pid = pid;
     }
 
     if (pszFormatResult) {
         PR_DELETE(pszFormatResult);
     }