PR_MakeDir should call nspr initialization (needed on Windows, at least). NSPRPUB_RELEASE_4_0_BRANCH
authorwtc%netscape.com
Thu, 27 Jan 2000 19:13:55 +0000
branchNSPRPUB_RELEASE_4_0_BRANCH
changeset 1104 4412ef156bd9b6b3a1c7f2a23d5578c73aa80f2f
parent 1103 2581233d67c005b6cb15ea03f269e1f6137def0a
child 1105 3f874c46de0c2f5111521bdb2cfc22b318cdf256
push idunknown
push userunknown
push dateunknown
PR_MakeDir should call nspr initialization (needed on Windows, at least).
pr/src/io/prdir.c
--- a/pr/src/io/prdir.c
+++ b/pr/src/io/prdir.c
@@ -69,16 +69,17 @@ PRInt32 rv;
 	} else
 		return PR_SUCCESS;
 }
 
 PR_IMPLEMENT(PRStatus) PR_MakeDir(const char *name, PRIntn mode)
 {
 PRInt32 rv;
 
+	if (!_pr_initialized) _PR_ImplicitInitialization();
 	rv = _PR_MD_MAKE_DIR(name, mode);
 	if (rv < 0) {
 		return PR_FAILURE;
 	} else
 		return PR_SUCCESS;
 }
 
 PR_IMPLEMENT(PRStatus) PR_RmDir(const char *name)