mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 02:26:38 -04:00
files/patch-include_wine_asm.h has now gone upstream in a somewhat more expansive form. Note to drop our version when upgrading. (The upstream patch does not directly apply to Wine 9.0.)
26 lines
1.2 KiB
C
26 lines
1.2 KiB
C
This patch is borrowed from emulators/wine-proton. According to several
|
|
users confirming in PR 279927 and PR 280000 this fixes
|
|
|
|
002c:err:seh:NtRaiseException Unhandled exception code c0000005 flags 0 addr 0x6ffffff8b2b7
|
|
0024:err:seh:NtRaiseException Unhandled exception code c0000005 flags 0 addr 0x6ffffff8b2b7
|
|
|
|
for them.
|
|
|
|
Upstream Wine has a more complete patch in the meantime; drop this one
|
|
when moving to the major release post 9.0.
|
|
|
|
--- UTC
|
|
--- include/wine/asm.h.orig 2024-02-24 10:23:40.551780000 +0300
|
|
+++ include/wine/asm.h 2024-02-24 10:23:43.285931000 +0300
|
|
@@ -242,9 +242,9 @@
|
|
".byte 0x75,0x03\n\t" /* jne 1f */ \
|
|
".byte 0x0f,0x05\n\t" /* syscall */ \
|
|
".byte 0xc3\n\t" /* ret */ \
|
|
- "jmp 1f\n\t" \
|
|
+ ".byte 0xeb,0x01\n\t" /* jmp 1f */ \
|
|
".byte 0xc3\n" /* ret */ \
|
|
- "1:\t.byte 0xff,0x14,0x25\n\t" /* 1: callq *(0x7ffe1000) */ \
|
|
+ ".byte 0xff,0x14,0x25\n\t" /* 1: callq *(0x7ffe1000) */ \
|
|
".long 0x7ffe1000\n\t" \
|
|
"ret" )
|
|
# else
|