11 Mar
2023
11 Mar
'23
11:45 p.m.
Alex Henrie (@alexhenrie) commented about dlls/wintypes/main.c:
return S_OK; }
+HRESULT WINAPI RoIsApiContractMajorVersionPresent(const WCHAR *name, UINT16 major, BOOL *result) +{ + /* For some reason MS Office crashes if a logging statement is added here */
This may be completely irrelevant, but sometimes adding DECLSPEC_HOTPATCH to a function resolves strange crashes. Ideally we would include DECLSPEC_HOTPATCH in the definition of WINAPI, but GCC doesn't like it being slipped onto function pointers, so we've just been adding it on an as-needed basis. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2376#note_26747