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)
https://bugs.winehq.org/show_bug.cgi?id=50149
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Fixed with ffce592cc354b7ce962eb689d7ebb86eeb46dd50, 7cae17c134ed7fd7c8b6bd41f4a41cb095d6d859.
https://bugs.winehq.org/show_bug.cgi?id=50149
Brendan Shanks bshanks@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |7cae17c134ed7fd7c8b6bd41f4a | |41cb095d6d859 Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Brendan Shanks bshanks@codeweavers.com --- Thanks Nikolay, with this WebView2 now gets farther (before failing because of missing COM classes)
https://bugs.winehq.org/show_bug.cgi?id=50149
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.22.