// register UEF for SL.
if (g_pOriginalUnhandledExceptionFilter == FILTER_NOT_INSTALLED) {
-#pragma prefast(suppress:28725, "Calling to SetUnhandledExceptionFilter is intentional in this case.")
+ #pragma prefast(push)
+ #pragma prefast(suppress:28725, "Calling to SetUnhandledExceptionFilter is intentional in this case.")
g_pOriginalUnhandledExceptionFilter = SetUnhandledExceptionFilter(COMUnhandledExceptionFilter);
+ #pragma prefast(pop)
+
// 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"));
}
// 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.")
+ #pragma prefast(push)
+ #pragma prefast(suppress:28725, "Calling to SetUnhandledExceptionFilter is intentional in this case.")
SetUnhandledExceptionFilter(g_pOriginalUnhandledExceptionFilter);
+ #pragma prefast(pop)
g_pOriginalUnhandledExceptionFilter = FILTER_NOT_INSTALLED;
LOG((LF_EH, LL_INFO10, "UninstallUnhandledExceptionFilter unregistered UEF from OS for CoreCLR!\n"));
if (index == 0)
break;
- #ifdef _PREFAST_
+ #ifdef _PREFAST_
#pragma prefast(push)
#pragma prefast(disable:26001, "suppress prefast warning about underflow by doing index-1 which is checked above.")
- #endif // _PREFAST_
-
+ #endif // _PREFAST_
+
wszIntermediateBuffer[index-1] = W('\0');
- #ifdef _PREFAST_
+ #ifdef _PREFAST_
#pragma prefast(pop)
- #endif
+ #endif
size = WszGetLongPathName(wszIntermediateBuffer, wszBuffer, MAX_LONGPATH);