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

This commit is contained in:
jfrancis%netscape.com 2002-07-16 22:17:56 +00:00
Родитель f68e734804
Коммит 94ae893f2d
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -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)
{