From 105bb95c15e90720e6c96225887347032fe8d98f Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Thu, 28 Feb 2013 16:12:51 -0500 Subject: [PATCH] Bug 843770. r=rstrong --- toolkit/mozapps/update/updater/loaddlls.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toolkit/mozapps/update/updater/loaddlls.cpp b/toolkit/mozapps/update/updater/loaddlls.cpp index 78bbf4936f5a..8ff69d682958 100644 --- a/toolkit/mozapps/update/updater/loaddlls.cpp +++ b/toolkit/mozapps/update/updater/loaddlls.cpp @@ -12,6 +12,10 @@ struct AutoLoadSystemDependencies { AutoLoadSystemDependencies() { + // Remove the current directory from the search path for dynamically loaded + // DLLs as a precaution. This call has no effect for delay load DLLs. + SetDllDirectory(L""); + static LPCWSTR delayDLLs[] = { L"wsock32.dll", L"crypt32.dll", L"cryptsp.dll", L"cryptbase.dll", L"msasn1.dll", L"userenv.dll", -- 2.11.4.GIT