From e253e526fc1cb96fc6ff485bfa65f99239f9b872 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 24 May 2011 17:23:43 +0200 Subject: [PATCH] msvcrt: Added _get_unexpected implementation. --- dlls/msvcrt/cpp.c | 10 ++++++++++ dlls/msvcrt/msvcrt.spec | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dlls/msvcrt/cpp.c b/dlls/msvcrt/cpp.c index 6f6b5c65c00..d5c0c64f745 100644 --- a/dlls/msvcrt/cpp.c +++ b/dlls/msvcrt/cpp.c @@ -1048,6 +1048,16 @@ MSVCRT_unexpected_function CDECL MSVCRT_set_unexpected(MSVCRT_unexpected_functio return previous; } +/****************************************************************** + * _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@Z@Z (MSVCRT.@) */ diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 7e00607b455..ac7b9e3eb9d 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)