Piotr Caban : msvcrt: Added _get_heap_handle implementation.
Alexandre Julliard
julliard at winehq.org
Wed Apr 21 10:40:19 CDT 2010
Module: wine
Branch: master
Commit: 776998866aeeb4c27352258554272777e8863c00
URL: http://source.winehq.org/git/wine.git/?a=commit;h=776998866aeeb4c27352258554272777e8863c00
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue Apr 20 21:39:22 2010 +0200
msvcrt: Added _get_heap_handle implementation.
---
dlls/msvcr80/msvcr80.spec | 2 +-
dlls/msvcr90/msvcr90.spec | 2 +-
dlls/msvcrt/heap.c | 8 ++++++++
dlls/msvcrt/msvcrt.spec | 2 +-
4 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec
index 945bf4b..0023a15 100644
--- a/dlls/msvcr80/msvcr80.spec
+++ b/dlls/msvcr80/msvcr80.spec
@@ -469,7 +469,7 @@
@ stub _get_dstbias
@ stub _get_errno
@ stub _get_fmode
-@ stub _get_heap_handle
+@ cdecl _get_heap_handle() msvcrt._get_heap_handle
@ cdecl _get_invalid_parameter_handler() msvcrt._get_invalid_parameter_handler
@ cdecl _get_osfhandle(long) msvcrt._get_osfhandle
@ stub _get_osplatform
diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec
index db16a0b..add61f7 100644
--- a/dlls/msvcr90/msvcr90.spec
+++ b/dlls/msvcr90/msvcr90.spec
@@ -461,7 +461,7 @@
@ stub _get_dstbias
@ stub _get_errno
@ stub _get_fmode
-@ stub _get_heap_handle
+@ cdecl _get_heap_handle() msvcrt._get_heap_handle
@ cdecl _get_invalid_parameter_handler() msvcrt._get_invalid_parameter_handler
@ cdecl _get_osfhandle(long) msvcrt._get_osfhandle
@ stub _get_output_format
diff --git a/dlls/msvcrt/heap.c b/dlls/msvcrt/heap.c
index c57a46c..bd7cf35 100644
--- a/dlls/msvcrt/heap.c
+++ b/dlls/msvcrt/heap.c
@@ -253,6 +253,14 @@ int CDECL _heapadd(void* mem, MSVCRT_size_t size)
}
/*********************************************************************
+ * _heapadd (MSVCRT.@)
+ */
+MSVCRT_intptr_t CDECL _get_heap_handle(void)
+{
+ return (MSVCRT_intptr_t)GetProcessHeap();
+}
+
+/*********************************************************************
* _msize (MSVCRT.@)
*/
MSVCRT_size_t CDECL _msize(void* mem)
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index f21588f..5058340 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -428,7 +428,7 @@
# stub _get_errno
# stub _get_fileinfo
# stub _get_fmode
-# stub _get_heap_handle
+@ cdecl _get_heap_handle()
@ cdecl _get_osfhandle(long)
# stub _get_osplatform
# stub _get_osver
More information about the wine-cvs
mailing list