https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c50fb470b4dd13ea94956…
commit c50fb470b4dd13ea9495691320553ae55be61f43
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Tue Sep 18 09:58:21 2018 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu Feb 2 14:58:08 2023 +0100
[WINESYNC] msvcrt: Add DECLSPEC_HOTPATCH to functions patched by libtcmalloc.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=45199
Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id b917cc66f4f7b786e7f19f63ab0c0819a5455222 by Alex Henrie
<alexhenrie24(a)gmail.com>
---
sdk/lib/crt/wine/heap.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sdk/lib/crt/wine/heap.c b/sdk/lib/crt/wine/heap.c
index 9c6ed0e053a..d708d60117a 100644
--- a/sdk/lib/crt/wine/heap.c
+++ b/sdk/lib/crt/wine/heap.c
@@ -149,7 +149,7 @@ static MSVCRT_size_t msvcrt_heap_size(void *ptr)
/*********************************************************************
* ??2@YAPAXI@Z (MSVCRT.@)
*/
-void* CDECL MSVCRT_operator_new(MSVCRT_size_t size)
+void* CDECL DECLSPEC_HOTPATCH MSVCRT_operator_new(MSVCRT_size_t size)
{
void *retval;
int freed;
@@ -193,7 +193,7 @@ void* CDECL MSVCRT_operator_new_dbg(MSVCRT_size_t size, int type,
const char *fi
/*********************************************************************
* ??3@YAXPAX@Z (MSVCRT.@)
*/
-void CDECL MSVCRT_operator_delete(void *mem)
+void CDECL DECLSPEC_HOTPATCH MSVCRT_operator_delete(void *mem)
{
TRACE("(%p)\n", mem);
msvcrt_heap_free(mem);
@@ -418,7 +418,7 @@ size_t CDECL _aligned_msize(void *p, MSVCRT_size_t alignment,
MSVCRT_size_t offs
/*********************************************************************
* calloc (MSVCRT.@)
*/
-void* CDECL MSVCRT_calloc(MSVCRT_size_t count, MSVCRT_size_t size)
+void* CDECL DECLSPEC_HOTPATCH MSVCRT_calloc(MSVCRT_size_t count, MSVCRT_size_t size)
{
MSVCRT_size_t bytes = count*size;
@@ -444,7 +444,7 @@ void* CDECL _calloc_base(MSVCRT_size_t count, MSVCRT_size_t size)
/*********************************************************************
* free (MSVCRT.@)
*/
-void CDECL MSVCRT_free(void* ptr)
+void CDECL DECLSPEC_HOTPATCH MSVCRT_free(void* ptr)
{
msvcrt_heap_free(ptr);
}
@@ -483,7 +483,7 @@ void* CDECL _malloc_base(MSVCRT_size_t size)
/*********************************************************************
* realloc (MSVCRT.@)
*/
-void* CDECL MSVCRT_realloc(void* ptr, MSVCRT_size_t size)
+void* CDECL DECLSPEC_HOTPATCH MSVCRT_realloc(void* ptr, MSVCRT_size_t size)
{
if (!ptr) return MSVCRT_malloc(size);
if (size) return msvcrt_heap_realloc(0, ptr, size);