mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Use GetFileSpec() correctly.
This commit is contained in:
parent
bf8f545b8e
commit
0b9f7ca8a1
@ -1931,13 +1931,12 @@ nsComponentManagerImpl::AutoRegisterComponent(RegistrationTime when, nsIFileSpec
|
||||
|
||||
#ifdef XP_MAC
|
||||
// rjc - on Mac, check the file's type code (skip checking the creator code)
|
||||
const nsFileSpec *fs = nsnull;
|
||||
if (NS_FAILED(rv = component->GetFileSpec(fs)))
|
||||
const nsFileSpec fs;
|
||||
if (NS_FAILED(rv = component->GetFileSpec(&fs)))
|
||||
return(rv);
|
||||
if (!fs) return(NS_ERROR_NULL_POINTER);
|
||||
|
||||
CInfoPBRec catInfo;
|
||||
OSErr err = fs->GetCatInfo(catInfo);
|
||||
OSErr err = fs.GetCatInfo(catInfo);
|
||||
if (!err)
|
||||
{
|
||||
// on Mac, Mozilla shared libraries are of type 'shlb'
|
||||
|
Loading…
x
Reference in New Issue
Block a user