mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
34
sdk/lib/3rdparty/libwine/debug_ros.c
vendored
Normal file
34
sdk/lib/3rdparty/libwine/debug_ros.c
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* The use of these four functions was creating unwanted imports
|
||||
* from msvcrt.dll in kernel32.dll. */
|
||||
|
||||
#define malloc libwine_malloc
|
||||
#define free libwine_free
|
||||
#define realloc libwine_realloc
|
||||
#define _strdup libwine__strdup
|
||||
|
||||
#include "debug.c"
|
||||
|
||||
__MINGW_ATTRIB_MALLOC
|
||||
void * __cdecl malloc(size_t size)
|
||||
{
|
||||
return LocalAlloc(0, size);
|
||||
}
|
||||
|
||||
void __cdecl free(void *ptr)
|
||||
{
|
||||
LocalFree(ptr);
|
||||
}
|
||||
|
||||
void * __cdecl realloc(void *ptr, size_t size)
|
||||
{
|
||||
if (ptr == NULL) return malloc(size);
|
||||
return LocalReAlloc(ptr, size, LMEM_MOVEABLE);
|
||||
}
|
||||
|
||||
__MINGW_ATTRIB_MALLOC
|
||||
char * __cdecl _strdup(const char *str)
|
||||
{
|
||||
char *newstr = malloc(strlen(str) + 1);
|
||||
if (newstr) strcpy(newstr, str);
|
||||
return newstr;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue