[MSVCRT] Fix use of __wine_RtlUnwind

This commit is contained in:
Timo Kreuzer
2026-01-10 20:25:26 +02:00
parent 1a42db50ad
commit 06ed85e2c3
2 changed files with 6 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ add_definitions(
if(ARCH STREQUAL "i386")
add_definitions(
-D__ASM_USE_THISCALL_WRAPPER
-DRtlUnwind=__wine_RtlUnwind # See i386/__wine_RtlUnwind.s
)
endif()
@@ -116,10 +117,6 @@ add_library(msvcrt_shared
)
target_compile_definitions(msvcrt_shared PRIVATE _MSVCR_VER=0)
if(ARCH STREQUAL "i386")
# ASM wrapper for Wine code, implemented in i386/__wine_RtlUnwind.s
target_compile_definitions(msvcrt_shared PRIVATE RtlUnwind=__wine_RtlUnwind)
endif()
add_dependencies(msvcrt_shared psdk asm)
###############################################################################

View File

@@ -50,4 +50,9 @@ ___wine_RtlUnwind@16:
pop ebp
ret 16
PUBLIC __imp____wine_RtlUnwind@16
__imp____wine_RtlUnwind@16:
.long ___wine_RtlUnwind@16
END