Change the __except to use the exception result codes

This commit is contained in:
Marek Roszko 2024-01-05 21:03:43 -05:00
parent 05cbfc6aca
commit be21c689e8
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ static void bootstrapFc()
g_fcInitSuccess = true; g_fcInitSuccess = true;
#if defined( _MSC_VER ) #if defined( _MSC_VER )
} }
__except( GetExceptionCode() == STATUS_IN_PAGE_ERROR ) __except( GetExceptionCode() == STATUS_IN_PAGE_ERROR ? EXCEPTION_EXECUTE_HANDLER
: EXCEPTION_CONTINUE_SEARCH )
{ {
g_fcInitSuccess = false; g_fcInitSuccess = false;
// We have documented cases that fontconfig while trying to cache fonts // We have documented cases that fontconfig while trying to cache fonts