mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Fix crashing in Windows Insiders builds (#2562)
Added missing initialization of winrt apartment
This commit is contained in:
committed by
GitHub
parent
6cd0f83496
commit
0f6563e8e0
@@ -17,7 +17,7 @@ public:
|
||||
|
||||
// Constructor
|
||||
XamlBridge(HWND parent) :
|
||||
parentWindow(parent), lastFocusRequestId(winrt::guid())
|
||||
parentWindow(parent), lastFocusRequestId(winrt::guid()), winxamlmanager(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -37,6 +37,9 @@ private:
|
||||
// Stores the handle of the parent native window
|
||||
HWND parentWindow = nullptr;
|
||||
|
||||
// Window xaml manager for UI thread.
|
||||
WindowsXamlManager winxamlmanager;
|
||||
|
||||
// Stores the GUID of the last focus request
|
||||
winrt::guid lastFocusRequestId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user