msvcrt/tests: Remove wrong FreeLibrary and fix typo's.

This commit is contained in:
Paul Vriens 2007-08-14 20:46:32 +02:00 committed by Alexandre Julliard
parent 16d9123377
commit 059436d536
2 changed files with 2 additions and 5 deletions

View File

@ -187,7 +187,7 @@ static void InitFunctionPtrs(void)
hMsvcrt = GetModuleHandleA("msvcrt.dll"); hMsvcrt = GetModuleHandleA("msvcrt.dll");
if (!hMsvcrt) if (!hMsvcrt)
hMsvcrt = GetModuleHandleA("msvcrtd.dll"); hMsvcrt = GetModuleHandleA("msvcrtd.dll");
ok(hMsvcrt != 0, "LoadLibraryA failed\n"); ok(hMsvcrt != 0, "GetModuleHandleA failed\n");
if (hMsvcrt) if (hMsvcrt)
{ {
SETNOFAIL(poperator_new, "??_U@YAPAXI@Z"); SETNOFAIL(poperator_new, "??_U@YAPAXI@Z");
@ -1004,8 +1004,5 @@ START_TEST(cpp)
test_rtti(); test_rtti();
test_demangle_datatype(); test_demangle_datatype();
test_demangle(); test_demangle();
if (hMsvcrt)
FreeLibrary(hMsvcrt);
} }
#endif /* __i386__ */ #endif /* __i386__ */

View File

@ -135,7 +135,7 @@ START_TEST(string)
hMsvcrt = GetModuleHandleA("msvcrt.dll"); hMsvcrt = GetModuleHandleA("msvcrt.dll");
if (!hMsvcrt) if (!hMsvcrt)
hMsvcrt = GetModuleHandleA("msvcrtd.dll"); hMsvcrt = GetModuleHandleA("msvcrtd.dll");
ok(hMsvcrt != 0, "LoadLibraryA failed\n"); ok(hMsvcrt != 0, "GetModuleHandleA failed\n");
SET(pmemcpy,"memcpy"); SET(pmemcpy,"memcpy");
SET(pmemcmp,"memcmp"); SET(pmemcmp,"memcmp");