projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da5463c
)
- Use malloc/free in C++ new/delete operator implementation (resolves heap issues...
author
Filip Navara
<filip.navara@gmail.com>
Sat, 11 Dec 2004 00:24:03 +0000
(
00:24
+0000)
committer
Filip Navara
<filip.navara@gmail.com>
Sat, 11 Dec 2004 00:24:03 +0000
(
00:24
+0000)
svn path=/trunk/; revision=12009
reactos/lib/msvcrt/wine/heap.c
patch
|
blob
|
history
diff --git
a/reactos/lib/msvcrt/wine/heap.c
b/reactos/lib/msvcrt/wine/heap.c
index
61f0e6e
..
f89dfd0
100644
(file)
--- a/
reactos/lib/msvcrt/wine/heap.c
+++ b/
reactos/lib/msvcrt/wine/heap.c
@@
-48,7
+48,7
@@
static int MSVCRT_new_mode;
*/
void* MSVCRT_operator_new(unsigned long size)
{
- void *retval =
HeapAlloc(GetProcessHeap(), 0,
size);
+ void *retval =
malloc(
size);
TRACE("(%ld) returning %p\n", size, retval);
LOCK_HEAP;
if(!retval && MSVCRT_new_handler)
@@
-63,7
+63,7
@@
void* MSVCRT_operator_new(unsigned long size)
void MSVCRT_operator_delete(void *mem)
{
TRACE("(%p)\n", mem);
-
HeapFree(GetProcessHeap(), 0,
mem);
+
free(
mem);
}