[PATCH v2 4/4] ucrtbase: Implement _realloc_base.
Alex Henrie
alexhenrie24 at gmail.com
Thu Jun 16 19:02:26 CDT 2016
Cc: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/api-ms-win-crt-heap-l1-1-0/api-ms-win-crt-heap-l1-1-0.spec | 2 +-
dlls/msvcrt/heap.c | 8 ++++++++
dlls/ucrtbase/ucrtbase.spec | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/api-ms-win-crt-heap-l1-1-0/api-ms-win-crt-heap-l1-1-0.spec b/dlls/api-ms-win-crt-heap-l1-1-0/api-ms-win-crt-heap-l1-1-0.spec
index 418926e..0a99e87 100644
--- a/dlls/api-ms-win-crt-heap-l1-1-0/api-ms-win-crt-heap-l1-1-0.spec
+++ b/dlls/api-ms-win-crt-heap-l1-1-0/api-ms-win-crt-heap-l1-1-0.spec
@@ -18,7 +18,7 @@
@ cdecl _msize(ptr) ucrtbase._msize
@ stub _query_new_handler
@ stub _query_new_mode
-@ stub _realloc_base
+@ cdecl _realloc_base(ptr long) ucrtbase._realloc_base
@ cdecl _recalloc(ptr long long) ucrtbase._recalloc
@ cdecl _set_new_mode(long) ucrtbase._set_new_mode
@ cdecl calloc(long long) ucrtbase.calloc
diff --git a/dlls/msvcrt/heap.c b/dlls/msvcrt/heap.c
index 8a84802..3ae2599 100644
--- a/dlls/msvcrt/heap.c
+++ b/dlls/msvcrt/heap.c
@@ -460,6 +460,14 @@ void* CDECL MSVCRT_realloc(void* ptr, MSVCRT_size_t size)
}
/*********************************************************************
+ * _realloc_base (UCRTBASE.@)
+ */
+void* CDECL _realloc_base(void* ptr, MSVCRT_size_t size)
+{
+ return MSVCRT_realloc(ptr, size);
+}
+
+/*********************************************************************
* _recalloc (MSVCR100.@)
*/
void* CDECL _recalloc(void *mem, MSVCRT_size_t num, MSVCRT_size_t size)
diff --git a/dlls/ucrtbase/ucrtbase.spec b/dlls/ucrtbase/ucrtbase.spec
index ff21fb3..64f6276 100644
--- a/dlls/ucrtbase/ucrtbase.spec
+++ b/dlls/ucrtbase/ucrtbase.spec
@@ -1859,7 +1859,7 @@
@ stub _query_new_handler
@ stub _query_new_mode
@ cdecl _read(long ptr long) MSVCRT__read
-@ stub _realloc_base
+@ cdecl _realloc_base(ptr long)
@ cdecl _recalloc(ptr long long)
@ cdecl _register_onexit_function(ptr ptr) MSVCRT__register_onexit_function
@ stub _register_thread_local_exe_atexit_callback
--
2.8.3
More information about the wine-patches
mailing list