mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[MSVCRTD_WINETEST]
* Sync with Wine 1.7.1. CORE-7469 svn path=/trunk/; revision=60547
This commit is contained in:
parent
43ef186f8f
commit
aaed681d85
3 changed files with 8 additions and 12 deletions
|
@ -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)
|
||||||
|
|
|
@ -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 */
|
/* Some exports are only available in later versions */
|
||||||
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y)
|
#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)
|
if (pMSVCRTD_operator_new_dbg == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue