summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwchang0222%aol.com <devnull@localhost>2004-11-05 23:19:29 +0000
committerwchang0222%aol.com <devnull@localhost>2004-11-05 23:19:29 +0000
commit653b2e4c801b30b38610e0f1b8310adb0b93aabc (patch)
treea38982006bc828b1ec2a0b8f7db5e0f611af4ddb
parent49d86362d697e44903b229cd06f45f19048a3375 (diff)
downloadnspr-hg-653b2e4c801b30b38610e0f1b8310adb0b93aabc.tar.gz
Bugzilla bug 265219: go to errorExit on DosStartSession failure. r=mkaply.
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r--pr/src/md/os2/os2misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pr/src/md/os2/os2misc.c b/pr/src/md/os2/os2misc.c
index d4be3b85..8a4ae9eb 100644
--- a/pr/src/md/os2/os2misc.c
+++ b/pr/src/md/os2/os2misc.c
@@ -426,7 +426,8 @@ PRProcess * _PR_CreateOS2Process(
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;