From b676bcf119d068ff168d451fe3b99f7c65953670 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Thu, 15 Jul 2010 15:55:05 +0300 Subject: [PATCH] Bug 578219 Crash in [@ nsNativeModuleLoader::LoadModule ] when installing LastPass Password Manager addon r=bsmedberg --HG-- extra : rebase_source : fb97bc29e6a1e4b0abc1108555947edb4e1000a5 --- xpcom/components/nsNativeComponentLoader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xpcom/components/nsNativeComponentLoader.cpp b/xpcom/components/nsNativeComponentLoader.cpp index 34548bdb0e0..4572f89b529 100644 --- a/xpcom/components/nsNativeComponentLoader.cpp +++ b/xpcom/components/nsNativeComponentLoader.cpp @@ -201,8 +201,9 @@ nsNativeModuleLoader::LoadModule(nsILocalFile* aFile) } #endif - data.module = *(mozilla::Module const *const *) PR_FindSymbol(data.library, "NSModule"); - if (data.module) { + void *module = PR_FindSymbol(data.library, "NSModule"); + if (module) { + data.module = *(mozilla::Module const *const *) module; if (mLibraries.Put(hashedFile, data)) return data.module; }