Don't import MSVCRTD.DLL and don't fail when it could not be loaded.
This commit is contained in:
parent
68d4ca1f6a
commit
56171eea2d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue