-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for FACILITY_WINCODEC_DWRITE_DWM
- Loading branch information
1 parent
5bc2985
commit c40f9cb
Showing
3 changed files
with
35 additions
and
37 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/Elmah.Io.HResults/Facilities/FacilityWincodecDwriteDwmResolver.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Elmah.Io.HResults.Facilities | ||
{ | ||
// Sources: | ||
// - https://learn.microsoft.com/en-us/troubleshoot/developer/dotnet/framework/general/wpf-render-thread-failures | ||
internal class FacilityWincodecDwriteDwmResolver : FacilityResolverBase | ||
{ | ||
public FacilityWincodecDwriteDwmResolver() : base(2200, "FACILITY_WINCODEC_DWRITE_DWM") | ||
{ | ||
} | ||
|
||
internal override Code Resolve(bool failure, int code) | ||
{ | ||
return code switch | ||
{ | ||
1030 => new Code(code, "UCEERR_RENDERTHREADFAILURE"), | ||
_ => Unknown(code), | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters