fix for Bug 154932: Mozilla will not start on MacOS 8.6 if filesharing is on. Corrected the construction of an FSSpec in nsDirectoryService.cpp
r=ccarlen sr=sfraser git-svn-id: svn://10.0.0.236/trunk@125329 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -167,7 +167,7 @@ nsDirectoryService::GetCurrentProcessDirectory(nsILocalFile** aFile)
|
||||
// get info for the the current process to determine the directory
|
||||
// its located in
|
||||
OSErr err;
|
||||
ProcessSerialNumber psn = {kNoProcess, kCurrentProcess};
|
||||
ProcessSerialNumber psn = {kNoProcess, kCurrentProcess};
|
||||
ProcessInfoRec pInfo;
|
||||
FSSpec tempSpec;
|
||||
|
||||
@@ -180,11 +180,10 @@ nsDirectoryService::GetCurrentProcessDirectory(nsILocalFile** aFile)
|
||||
err = GetProcessInformation(&psn, &pInfo);
|
||||
if (!err)
|
||||
{
|
||||
FSSpec appFSSpec = *(pInfo.processAppSpec);
|
||||
// create an FSSpec from the volume and dirid of the app.
|
||||
FSSpec appFSSpec;
|
||||
::FSMakeFSSpec(pInfo.processAppSpec->vRefNum, pInfo.processAppSpec->parID, 0, &appFSSpec);
|
||||
|
||||
// Truncate the nsame so the spec is just to the app directory
|
||||
appFSSpec.name[0] = 0;
|
||||
|
||||
nsCOMPtr<nsILocalFileMac> localFileMac = do_QueryInterface((nsIFile*)localFile);
|
||||
if (localFileMac)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user