Skip to content

Commit

Permalink
Add comments to help investigate crashes in UpdateSource when UpdateA…
Browse files Browse the repository at this point in the history
…crylicBrushesDarkTheme (#6744)
  • Loading branch information
licanhua authored Feb 18, 2022
1 parent f0e2161 commit 9351512
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/dll/XamlControlsResources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ void XamlControlsResources::UpdateSource()
}
catch (winrt::hresult_error const& e)
{
// AcrylicBrushes are defined in WUXC other than MUXC, so the resources are quirked. If rs2 or below resources is loaded in OS repo, it crashes here.
// Check TargetPlatformVersion and MaxVersionTested to make sure it's a big number > 16299. For example
// <TargetPlatformVersion>10.0.17763.0</TargetPlatformVersion>
// <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="12.0.0.0" />
if (e.code() == E_FAIL)
{
MUX_FAIL_FAST_MSG(e.message().c_str());
Expand Down

0 comments on commit 9351512

Please sign in to comment.