Commit 56171eea authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

Don't import MSVCRTD.DLL and don't fail when it could not be loaded.

parent 68d4ca1f
......@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR = @srcdir@
VPATH = @srcdir@
TESTDLL = msvcrtd.dll
IMPORTS = msvcrtd
IMPORTS = msvcrt
EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt
MODCFLAGS = @BUILTINFLAG@
......
......@@ -39,10 +39,11 @@ static void * (*pMSVCRTD_operator_new_dbg)(unsigned long, int, const char *, int
static int init_functions(void)
{
HMODULE hModule = LoadLibraryA("msvcrtd.dll");
ok(hModule != NULL, "LoadLibraryA failed\n");
if (!hModule)
if (!hModule) {
trace("LoadLibraryA failed to load msvcrtd.dll with GLE=%ld\n", GetLastError());
return FALSE;
}
SET(pMSVCRTD_operator_new_dbg, "??2@YAPAXIHPBDH@Z");
if (pMSVCRTD_operator_new_dbg == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment