Skip to content

Commit 5e2be5b

Browse files
[OLE32] Sync to wine-10.0
1 parent 828d163 commit 5e2be5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+12968
-23980
lines changed

dll/win32/ole32/CMakeLists.txt

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
remove_definitions(-D_WIN32_WINNT=0x502)
2+
remove_definitions(-D_WIN32_WINNT=0x502 -D_CRT_NON_CONFORMING_SWPRINTFS)
33
add_definitions(-D_WIN32_WINNT=0x600)
44

55
add_definitions(
@@ -8,9 +8,17 @@ add_definitions(
88
-DCOM_NO_WINDOWS_H
99
-DENTRY_PREFIX=OLE32_
1010
-DPROXY_CLSID=CLSID_PSFactoryBuffer
11-
-DWINE_REGISTER_DLL)
11+
-DWINE_REGISTER_DLL
12+
-D_ROAPI_)
13+
14+
if(DLL_EXPORT_VERSION GREATER_EQUAL 0xA00)
15+
spec2def(ole32.dll ole32.spec ADD_IMPORTLIB NO_PRIVATE_WARNINGS)
16+
set(COMBASE_NAME "combase")
17+
else()
18+
spec2def(ole32.dll ole32_nt5.spec ADD_IMPORTLIB NO_PRIVATE_WARNINGS)
19+
set(COMBASE_NAME "combase_win10")
20+
endif()
1221

13-
spec2def(ole32.dll ole32.spec ADD_IMPORTLIB NO_PRIVATE_WARNINGS)
1422
generate_idl_iids(dcom.idl)
1523
add_idl_headers(ole32idl dcom.idl irot.idl)
1624
add_rpc_files(client irot.idl)
@@ -32,30 +40,22 @@ list(APPEND SOURCE
3240
datacache.c
3341
defaulthandler.c
3442
dictionary.c
35-
enumx.c
36-
errorinfo.c
3743
filelockbytes.c
3844
filemoniker.c
3945
ftmarshal.c
4046
git.c
41-
hglobalstream.c
42-
ifs.c
4347
itemmoniker.c
4448
marshal.c
45-
memlockbytes.c
4649
moniker.c
4750
ole2.c
48-
ole2impl.c
4951
ole2stubs.c
5052
ole32_main.c
5153
oleobj.c
5254
oleproxy.c
5355
pointermoniker.c
54-
rpc.c
5556
stg_prop.c
5657
stg_stream.c
5758
storage32.c
58-
stubmanager.c
5959
usrmarshal.c)
6060

6161
if(MSVC AND (ARCH STREQUAL "i386"))
@@ -82,13 +82,15 @@ add_library(ole32 MODULE
8282
if(MSVC)
8383
# Disable warning C4090: '=': different 'const' qualifiers
8484
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
85-
target_compile_options(ole32 PRIVATE /wd4090 /wd4146)
85+
# Disable warning C4133: 'function': incompatible types - from 'UINT *' to 'MSIINSTALLCONTEXT *'
86+
target_compile_options(ole32 PRIVATE /wd4090 /wd4146 /wd4133)
8687
endif()
8788

8889
set_module_type(ole32 win32dll)
89-
target_link_libraries(ole32 wine uuid ${PSEH_LIB} oldnames)
90+
target_link_libraries(ole32 wine uuid pathcch_static ${PSEH_LIB} oldnames)
9091
add_delay_importlibs(ole32 oleaut32)
91-
add_importlibs(ole32 advapi32 user32 gdi32 rpcrt4 msvcrt kernel32 kernel32_vista ntdll)
92+
target_compile_definitions(ole32 PRIVATE STATIC_PATHCCH)
93+
add_importlibs(ole32 ${COMBASE_NAME} coml2 kernel32_vista advapi32 user32 gdi32 rpcrt4 msvcrt kernel32 ntdll)
9294
add_dependencies(ole32 ole32idl)
9395
add_pch(ole32 precomp.h "${PCH_SKIP_SOURCE}")
9496
add_cd_file(TARGET ole32 DESTINATION reactos/system32 FOR all)

0 commit comments

Comments
 (0)