зеркало из https://github.com/mozilla/gecko-dev.git
Fix non-debug bustage in nsNativeComponentLoader, this variable should not be debug-only.
This commit is contained in:
Родитель
f6058a77e6
Коммит
796d831e9d
|
@ -139,20 +139,15 @@ nsNativeModuleLoader::LoadModule(nsILocalFile* aFile)
|
|||
return r->mResult;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
// Only load components that end in the proper dynamic library suffix
|
||||
nsCAutoString filePath;
|
||||
aFile->GetNativePath(filePath);
|
||||
NS_ASSERTION(StringEndsWith(filePath, NS_LITERAL_CSTRING(MOZ_DLL_SUFFIX)),
|
||||
"Invalid DLL passed to the native module loader");
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsIHashable> hashedFile(do_QueryInterface(aFile));
|
||||
if (!hashedFile) {
|
||||
NS_ERROR("nsIFile is not nsIHashable");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
nsCAutoString filePath;
|
||||
aFile->GetNativePath(filePath);
|
||||
|
||||
NativeLoadData data;
|
||||
|
||||
if (mLibraries.Get(hashedFile, &data)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче