diff --git a/reactos/lib/msvcrt/msvcrt.def b/reactos/lib/msvcrt/msvcrt.def index 32ed92f765b..2722614dcf8 100644 --- a/reactos/lib/msvcrt/msvcrt.def +++ b/reactos/lib/msvcrt/msvcrt.def @@ -1,4 +1,4 @@ -; $Id: msvcrt.def,v 1.25 2003/10/05 18:13:27 navaraf Exp $ +; $Id: msvcrt.def,v 1.26 2003/12/07 22:59:13 navaraf Exp $ ; ; ReactOS MSVCRT Compatibility Library ; @@ -258,7 +258,7 @@ _execve _execvp _execvpe _exit -;_expand +_expand _fcloseall _fcvt _fdopen @@ -443,7 +443,7 @@ _memicmp _mkdir _mktemp ;_mktime64 -;_msize +_msize _nextafter _onexit _open diff --git a/reactos/lib/msvcrt/stdlib/malloc.c b/reactos/lib/msvcrt/stdlib/malloc.c index 4a7085930b6..0c8a2e97eed 100644 --- a/reactos/lib/msvcrt/stdlib/malloc.c +++ b/reactos/lib/msvcrt/stdlib/malloc.c @@ -69,6 +69,22 @@ void* realloc(void* _ptr, size_t _size) return HeapReAlloc(hHeap, 0, _ptr, _size); } +/* + * @implemented + */ +void* _expand(void* _ptr, size_t _size) +{ + return HeapReAlloc(GetProcessHeap(), HEAP_REALLOC_IN_PLACE_ONLY, _ptr, _size); +} + +/* + * @implemented + */ +size_t _msize(void* _ptr) +{ + return HeapSize(GetProcessHeap(), 0, _ptr); +} + /* ?_set_new_mode@@YAHH@Z (MSVCRT.@) */ int MSVCRT__set_new_mode(int mode) {