summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/os/windows/crashlog_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/crashlog_win.cpp b/src/os/windows/crashlog_win.cpp
index 0e1d2f8cc..1d3ed5193 100644
--- a/src/os/windows/crashlog_win.cpp
+++ b/src/os/windows/crashlog_win.cpp
@@ -633,7 +633,7 @@ static void CDECL CustomAbort(int signal)
mov safe_esp, esp
}
# else
- asm("movl %esp, _safe_esp");
+ asm("movl %%esp, %0" : "=rm" (safe_esp));
# endif
_safe_esp = safe_esp;
#endif