Piotr Caban : msvcrt: Added _get_unexpected implementation.
Alexandre Julliard
julliard at winehq.org
Wed May 25 11:28:12 CDT 2011
Module: wine
Branch: master
Commit: e253e526fc1cb96fc6ff485bfa65f99239f9b872
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e253e526fc1cb96fc6ff485bfa65f99239f9b872
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue May 24 17:23:43 2011 +0200
msvcrt: Added _get_unexpected implementation.
---
dlls/msvcrt/cpp.c | 10 ++++++++++
dlls/msvcrt/msvcrt.spec | 2 +-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/cpp.c b/dlls/msvcrt/cpp.c
index 6f6b5c6..d5c0c64 100644
--- a/dlls/msvcrt/cpp.c
+++ b/dlls/msvcrt/cpp.c
@@ -1049,6 +1049,16 @@ MSVCRT_unexpected_function CDECL MSVCRT_set_unexpected(MSVCRT_unexpected_functio
}
/******************************************************************
+ * _get_unexpected (MSVCRT.@)
+ */
+MSVCRT_unexpected_function CDECL MSVCRT__get_unexpected(void)
+{
+ thread_data_t *data = msvcrt_get_thread_data();
+ TRACE("returning %p\n", data->unexpected_handler);
+ return data->unexpected_handler;
+}
+
+/******************************************************************
* ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0 at Z@Z (MSVCRT.@)
*/
MSVCRT__se_translator_function CDECL MSVCRT__set_se_translator(MSVCRT__se_translator_function func)
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index 7e00607..ac7b9e3 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -489,7 +489,7 @@
# stub _get_wpgmptr(ptr)
@ cdecl _get_terminate() MSVCRT__get_terminate
@ cdecl _get_tzname(ptr str long long) MSVCRT__get_tzname
-@ stub _get_unexpected()
+@ cdecl _get_unexpected() MSVCRT__get_unexpected
@ cdecl _getch()
@ cdecl _getche()
@ cdecl _getcwd(str long)
More information about the wine-cvs
mailing list