Commit 57140421 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard
Browse files

msvcrt: Add SEH annotations for sse2_memcpy().

This allows unwinding from a crash inside the function.
parent 3f47b478
......@@ -2817,8 +2817,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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment