This commit is contained in:
Brian R. Bondy 2013-07-01 19:12:06 -04:00
Родитель e39196ad38
Коммит a41001a3c6
2 изменённых файлов: 10 добавлений и 5 удалений

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

@ -72,7 +72,7 @@ DEFINES += -DNS_NO_XPCOM \
ifdef _MSC_VER
WIN32_EXE_LDFLAGS += -ENTRY:wmainCRTStartup
WIN32_EXE_LDFLAGS += -DELAYLOAD:wsock32.dll -DELAYLOAD:crypt32.dll
WIN32_EXE_LDFLAGS += -DELAYLOAD:wsock32.dll -DELAYLOAD:crypt32.dll -DELAYLOAD:userenv.dll
endif
ifdef MOZ_WIDGET_GTK

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

@ -16,10 +16,15 @@ struct AutoLoadSystemDependencies
// 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",
L"secur32.dll" };
// The order that these are loaded matter, for example if we load something
// that tries to load profapi.dll first, then profapi.dll would be loaded
// wrongly from the current directory.
static LPCWSTR delayDLLs[] = { L"profapi.dll", L"wsock32.dll",
L"crypt32.dll", L"cryptsp.dll",
L"cryptbase.dll", L"msasn1.dll",
L"userenv.dll", L"secur32.dll",
L"ws2_32.dll", L"ws2help.dll",
L"apphelp.dll", L"bcryptprimitives.dll" };
WCHAR systemDirectory[MAX_PATH + 1] = { L'\0' };
// If GetSystemDirectory fails we accept that we'll load the DLLs from the