Zebediah Figura : msvcrt: Add SEH annotations for sse2_memcpy().
Module: wine Branch: oldstable Commit: b17e54de418eac8a5e282102c5a1b2570faa6154 URL: https://gitlab.winehq.org/wine/wine/-/commit/b17e54de418eac8a5e282102c5a1b25... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu Sep 1 17:02:24 2022 -0500 msvcrt: Add SEH annotations for sse2_memcpy(). This allows unwinding from a crash inside the function. (cherry picked from commit 57140421378ade6a5b5dea32bb94a1e8ab92906f) Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/msvcrt/string.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c index d92b7a38d12..5071d2fa8b3 100644 --- a/dlls/msvcrt/string.c +++ b/dlls/msvcrt/string.c @@ -2724,8 +2724,11 @@ int __cdecl memcmp(const void *ptr1, const void *ptr2, size_t n) #define MEMMOVE_INIT \ "pushq " SRC_REG "\n\t" \ + __ASM_SEH(".seh_pushreg " SRC_REG "\n\t") \ __ASM_CFI(".cfi_adjust_cfa_offset 8\n\t") \ "pushq " DEST_REG "\n\t" \ + __ASM_SEH(".seh_pushreg " DEST_REG "\n\t") \ + __ASM_SEH(".seh_endprologue\n\t") \ __ASM_CFI(".cfi_adjust_cfa_offset 8\n\t") \ "movq %rcx, " DEST_REG "\n\t" \ "movq %rdx, " SRC_REG "\n\t"
participants (1)
-
Alexandre Julliard