Skip to content

Commit e7823ed

Browse files
committed
[MSVCRT] Use process heap
This is a hack, which was used before and is still needed, because wine code uses CRT allocation functions, even when the process heap should be used.
1 parent 4799c86 commit e7823ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dll/win32/msvcrt/heap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ typedef int (CDECL *MSVCRT_new_handler_func)(size_t size);
4848
static MSVCRT_new_handler_func MSVCRT_new_handler;
4949
static LONG MSVCRT_new_mode;
5050

51-
/* FIXME - According to documentation it should be 8*1024, at runtime it returns 16 */
51+
/* FIXME - According to documentation it should be 8*1024, at runtime it returns 16 */
5252
static unsigned int MSVCRT_amblksiz = 16;
5353
/* FIXME - According to documentation it should be 480 bytes, at runtime default is 0 */
5454
static size_t MSVCRT_sbh_threshold = 0;
@@ -829,7 +829,7 @@ int CDECL wmemcpy_s(wchar_t *dest, size_t numberOfElements,
829829

830830
BOOL msvcrt_init_heap(void)
831831
{
832-
#if _MSVCR_VER <= 100
832+
#if _MSVCR_VER <= 100 && !defined(__REACTOS__)
833833
heap = HeapCreate(0, 0, 0);
834834
#else
835835
heap = GetProcessHeap();
@@ -839,7 +839,7 @@ BOOL msvcrt_init_heap(void)
839839

840840
void msvcrt_destroy_heap(void)
841841
{
842-
#if _MSVCR_VER <= 100
842+
#if _MSVCR_VER <= 100 && !defined(__REACTOS__)
843843
HeapDestroy(heap);
844844
#endif
845845
if(sb_heap)

0 commit comments

Comments
 (0)