vcpkg/ports/stackwalker/fix-build.patch
Vitalii Koshura 95252eadd6
[stackwalker] add new port (#30909)
* [stackwalker] add new port

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>

* Add note about the fix build patch already being submitted upstream.

---------

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
Co-authored-by: Billy O'Neal (VC AIR) <bion@microsoft.com>
2023-04-20 17:10:39 -07:00

24 lines
1.3 KiB
Diff

diff --git "a/Main/StackWalker/StackWalker.h" "b/Main/StackWalker/StackWalker.h"
index 67eb90575..e906dbc26 100644
--- "a/Main/StackWalker/StackWalker.h"
+++ "b/Main/StackWalker/StackWalker.h"
@@ -229,13 +229,11 @@ protected:
{ \
memset(&c, 0, sizeof(CONTEXT)); \
c.ContextFlags = contextFlags; \
- __asm { \
- call x \
- x: pop eax \
- mov c.Eip, eax \
- mov c.Ebp, ebp \
- mov c.Esp, esp \
- }; \
+ __asm call x \
+ __asm x: pop eax \
+ __asm mov c.Eip, eax \
+ __asm mov c.Ebp, ebp \
+ __asm mov c.Esp, esp \
} while (0);
// clang-format on
#endif