[MSVCRTD_WINETEST]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 5 Oct 2013 20:50:11 +0000 (20:50 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 5 Oct 2013 20:50:11 +0000 (20:50 +0000)
* Sync with Wine 1.7.1.
CORE-7469

svn path=/trunk/; revision=60547

rostests/winetests/msvcrtd/CMakeLists.txt
rostests/winetests/msvcrtd/debug.c
rostests/winetests/msvcrtd/testlist.c

index b656065..714cdcf 100644 (file)
@@ -1,10 +1,5 @@
 
 
-add_definitions(
-    -D__ROS_LONG64__
-    -D_DLL -D__USE_CRTIMP)
-
 add_executable(msvcrtd_winetest debug.c testlist.c)
 add_executable(msvcrtd_winetest debug.c testlist.c)
-target_link_libraries(msvcrtd_winetest wine)
 set_module_type(msvcrtd_winetest win32cui)
 set_module_type(msvcrtd_winetest win32cui)
-add_importlibs(msvcrtd_winetest msvcrt kernel32 ntdll)
+add_importlibs(msvcrtd_winetest msvcrt kernel32)
 add_cd_file(TARGET msvcrtd_winetest DESTINATION reactos/bin FOR all)
 add_cd_file(TARGET msvcrtd_winetest DESTINATION reactos/bin FOR all)
index 40fceac..f73fef1 100644 (file)
@@ -34,7 +34,7 @@ static void * (__cdecl *pMSVCRTD_operator_new_dbg)(size_t, int, const char *, in
 
 /* Some exports are only available in later versions */
 #define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y)
 
 /* Some exports are only available in later versions */
 #define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y)
-#define SET(x,y) SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y)
+#define SET(x,y) do { SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y); } while(0)
 
 static int init_functions(void)
 {
 
 static int init_functions(void)
 {
@@ -45,7 +45,11 @@ static int init_functions(void)
     return FALSE;
   }
 
     return FALSE;
   }
 
-  SET(pMSVCRTD_operator_new_dbg, "??2@YAPAXIHPBDH@Z");
+  if (sizeof(void *) > sizeof(int))  /* 64-bit has a different mangled name */
+      SET(pMSVCRTD_operator_new_dbg, "??2@YAPEAX_KHPEBDH@Z");
+  else
+      SET(pMSVCRTD_operator_new_dbg, "??2@YAPAXIHPBDH@Z");
+
   if (pMSVCRTD_operator_new_dbg == NULL)
     return FALSE;
 
   if (pMSVCRTD_operator_new_dbg == NULL)
     return FALSE;
 
index e17c018..a41e3a4 100644 (file)
@@ -1,10 +1,7 @@
 /* Automatically generated file; DO NOT EDIT!! */
 
 /* Automatically generated file; DO NOT EDIT!! */
 
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-
 #define STANDALONE
 #define STANDALONE
-#include "wine/test.h"
+#include <wine/test.h>
 
 extern void func_debug(void);
 
 
 extern void func_debug(void);