Skip to content

Commit 00f4a0f

Browse files
committed
[RICHED20] Enable thiscall wrappers for MSVC
Properly fix thiscall functions by enabling thiscall wrappers on MSVC builds. See CORE-20079, CORE-20006
1 parent dd53e7f commit 00f4a0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dll/win32/riched20/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ add_library(riched20 MODULE
3636
version.rc
3737
${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
3838

39+
if(MSVC AND ARCH STREQUAL "i386")
40+
# MSVC doesn't support __thiscall in C code
41+
target_compile_definitions(riched20 PRIVATE __ASM_USE_THISCALL_WRAPPER)
42+
endif()
43+
3944
add_typelib(riched_tom.idl)
4045
add_dependencies(riched20 stdole2)
4146
set_module_type(riched20 win32dll)

0 commit comments

Comments
 (0)