mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Fix for bug#6662 "PR_Open does not set hpb.fileParam.ioDirID field".
This commit is contained in:
parent
08989ba31a
commit
17ccbb4ad5
@ -357,9 +357,10 @@ PRInt32 _MD_Open(const char *path, PRIntn flags, int mode)
|
||||
hpb.ioParam.ioCompletion = NULL;
|
||||
PStrFromCStr(macFileName, pascalName);
|
||||
PR_DELETE(macFileName);
|
||||
hpb.ioParam.ioNamePtr = pascalName;
|
||||
hpb.ioParam.ioVRefNum = 0;
|
||||
hpb.ioParam.ioVersNum = 0;
|
||||
hpb.ioParam.ioNamePtr = pascalName;
|
||||
hpb.ioParam.ioVRefNum = 0;
|
||||
hpb.ioParam.ioVersNum = 0;
|
||||
hpb.fileParam.ioDirID = 0;
|
||||
|
||||
if (flags & PR_RDWR)
|
||||
perm = fsRdWrPerm;
|
||||
@ -367,12 +368,11 @@ PRInt32 _MD_Open(const char *path, PRIntn flags, int mode)
|
||||
perm = fsWrPerm;
|
||||
else
|
||||
perm = fsRdPerm;
|
||||
hpb.ioParam.ioPermssn = perm;
|
||||
hpb.ioParam.ioPermssn = perm;
|
||||
|
||||
hpb.ioParam.ioMisc = NULL;
|
||||
|
||||
open:
|
||||
err = PBHOpenSync(&hpb);
|
||||
err = PBHOpenDFSync(&hpb);
|
||||
if ((err == fnfErr) && (flags & PR_CREATE_FILE)) {
|
||||
err = PBHCreateSync(&hpb);
|
||||
if (err == noErr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user