Alex Henrie : msvcrt: Don' t include MSVC 7.1+ purecall functions in SOs for older DLLs.

Alexandre Julliard julliard at winehq.org
Fri Jan 5 14:02:04 CST 2018


Module: wine
Branch: master
Commit: 5041d89b9779dd3b4f3ef9b9f9e054db714f7e39
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5041d89b9779dd3b4f3ef9b9f9e054db714f7e39

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Wed Jan  3 21:33:03 2018 -0700

msvcrt: Don't include MSVC 7.1+ purecall functions in SOs for older DLLs.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/exit.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/msvcrt/exit.c b/dlls/msvcrt/exit.c
index 44b29c1..d0e93d7 100644
--- a/dlls/msvcrt/exit.c
+++ b/dlls/msvcrt/exit.c
@@ -462,6 +462,7 @@ void CDECL _register_thread_local_exe_atexit_callback(_tls_callback_type callbac
     tls_atexit_callback = callback;
 }
 
+#if _MSVCR_VER>=71
 /*********************************************************************
  *		_set_purecall_handler (MSVCR71.@)
  */
@@ -473,15 +474,18 @@ MSVCRT_purecall_handler CDECL _set_purecall_handler(MSVCRT_purecall_handler func
     purecall_handler = function;
     return ret;
 }
+#endif
 
+#if _MSVCR_VER>=80
 /*********************************************************************
- *		_get_purecall_handler
+ *		_get_purecall_handler (MSVCR80.@)
  */
 MSVCRT_purecall_handler CDECL _get_purecall_handler(void)
 {
     TRACE("\n");
     return purecall_handler;
 }
+#endif
 
 /*********************************************************************
  *		_purecall (MSVCRT.@)




More information about the wine-cvs mailing list