Change the __except to use the exception result codes

(cherry picked from commit be21c689e8)
This commit is contained in:
Marek Roszko 2024-01-05 21:03:43 -05:00 committed by Mark Roszko
parent edddf8a660
commit 85c324b5d7
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ static void bootstrapFc()
g_fcInitSuccess = true;
#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;
// We have documented cases that fontconfig while trying to cache fonts