https://bugs.winehq.org/show_bug.cgi?id=50149
Bug ID: 50149 Summary: Chromium/MS WebView2 depends on TEB->ReservedForOle 'apt_mask' value Product: Wine Version: 5.21 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ole32 Assignee: wine-bugs@winehq.org Reporter: bshanks@codeweavers.com Distribution: ---
Chromium reaches into the TEB->ReservedForOle struct to read the current COM apartment type:
https://source.chromium.org/chromium/chromium/src/+/master:base/win/com_init...
Wine's 'struct tlsdata' in dlls/combase/combase_private.h has the 'apt_mask' member in the right place, but it isn't set anywhere. This causes MS WebView2 to fail on initialization, and might cause other failures in Chromium.
(also, it looks like the entire SOleTlsData layout has been open-sourced as part of .NET core: https://github.com/dotnet/coreclr/blob/master/src/vm/oletls.h)