summaryrefslogtreecommitdiff
path: root/src/vm/excep.cpp
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2016-02-01 10:48:17 -0800
committerdotnet-bot <dotnet-bot@microsoft.com>2016-02-01 10:48:17 -0800
commita2cfe7239352d1934037965522fe5dd695873a3e (patch)
treee6ba19fd9a6df1b70dc766ff69b34b860e064001 /src/vm/excep.cpp
parent332bbcdc6226f7d8d63e49fa53d30e1a53839f7f (diff)
downloadcoreclr-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.cpp8
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"));
}