diff options
author | dotnet-bot <dotnet-bot@microsoft.com> | 2016-02-01 10:48:17 -0800 |
---|---|---|
committer | dotnet-bot <dotnet-bot@microsoft.com> | 2016-02-01 10:48:17 -0800 |
commit | a2cfe7239352d1934037965522fe5dd695873a3e (patch) | |
tree | e6ba19fd9a6df1b70dc766ff69b34b860e064001 /src/vm/excep.cpp | |
parent | 332bbcdc6226f7d8d63e49fa53d30e1a53839f7f (diff) | |
download | coreclr-a2cfe7239352d1934037965522fe5dd695873a3e.tar.gz coreclr-a2cfe7239352d1934037965522fe5dd695873a3e.tar.bz2 coreclr-a2cfe7239352d1934037965522fe5dd695873a3e.zip |
Fix OACR errors for ProjectK
[tfs-changeset: 1570939]
Diffstat (limited to 'src/vm/excep.cpp')
-rw-r--r-- | src/vm/excep.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vm/excep.cpp b/src/vm/excep.cpp index d4f0bf78bf..e8a17d4262 100644 --- a/src/vm/excep.cpp +++ b/src/vm/excep.cpp @@ -4978,8 +4978,9 @@ BOOL InstallUnhandledExceptionFilter() { // We will be here only for CoreCLR on WLC since we dont // register UEF for SL. if (g_pOriginalUnhandledExceptionFilter == FILTER_NOT_INSTALLED) { - g_pOriginalUnhandledExceptionFilter = - SetUnhandledExceptionFilter(COMUnhandledExceptionFilter); + +#pragma prefast(suppress:28725, "Calling to SetUnhandledExceptionFilter is intentional in this case.") + g_pOriginalUnhandledExceptionFilter = SetUnhandledExceptionFilter(COMUnhandledExceptionFilter); // make sure is set (ie. is not our special value to indicate unset) LOG((LF_EH, LL_INFO10, "InstallUnhandledExceptionFilter registered UEF with OS for CoreCLR!\n")); } @@ -5013,7 +5014,10 @@ void UninstallUnhandledExceptionFilter() { #else // !FEATURE_UEF_CHAINMANAGER // We will be here only for CoreCLR on WLC or on Mac SL. if (g_pOriginalUnhandledExceptionFilter != FILTER_NOT_INSTALLED) { + +#pragma prefast(suppress:28725, "Calling to SetUnhandledExceptionFilter is intentional in this case.") SetUnhandledExceptionFilter(g_pOriginalUnhandledExceptionFilter); + g_pOriginalUnhandledExceptionFilter = FILTER_NOT_INSTALLED; LOG((LF_EH, LL_INFO10, "UninstallUnhandledExceptionFilter unregistered UEF from OS for CoreCLR!\n")); } |