From 0feb83b637b22e166c24fabaa66163722c42fe08 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Mon, 9 Apr 2018 11:00:55 -0700 Subject: [PATCH] Dont format some things --- src/AspNetCore/Src/applicationinfo.cpp | 6 +++--- src/AspNetCore/Src/dllmain.cpp | 2 +- src/CommonLib/utility.cxx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AspNetCore/Src/applicationinfo.cpp b/src/AspNetCore/Src/applicationinfo.cpp index 10657fda7a..4e14e33a8a 100644 --- a/src/AspNetCore/Src/applicationinfo.cpp +++ b/src/AspNetCore/Src/applicationinfo.cpp @@ -112,7 +112,7 @@ APPLICATION_INFO::UpdateAppOfflineFileHandle() // if it was, log that app_offline has been dropped. if (m_fAppOfflineFound) { - UTILITY::LogEventF(g_hEventLog, + UTILITY::LogEvent(g_hEventLog, EVENTLOG_INFORMATION_TYPE, ASPNETCORE_EVENT_RECYCLE_APPOFFLINE_REMOVED, ASPNETCORE_EVENT_RECYCLE_APPOFFLINE_REMOVED_MSG); @@ -258,7 +258,7 @@ APPLICATION_INFO::FindRequestHandlerAssembly() { if (FAILED(hr = FindNativeAssemblyFromHostfxr(&struFileName))) { - UTILITY::LogEventF(g_hEventLog, + UTILITY::LogEvent(g_hEventLog, EVENTLOG_INFORMATION_TYPE, ASPNETCORE_EVENT_INPROCESS_RH_MISSING, ASPNETCORE_EVENT_INPROCESS_RH_MISSING_MSG); @@ -268,7 +268,7 @@ APPLICATION_INFO::FindRequestHandlerAssembly() { if (FAILED(hr = FindNativeAssemblyFromGlobalLocation(&struFileName))) { - UTILITY::LogEventF(g_hEventLog, + UTILITY::LogEvent(g_hEventLog, EVENTLOG_INFORMATION_TYPE, ASPNETCORE_EVENT_OUT_OF_PROCESS_RH_MISSING, ASPNETCORE_EVENT_OUT_OF_PROCESS_RH_MISSING_MSG); diff --git a/src/AspNetCore/Src/dllmain.cpp b/src/AspNetCore/Src/dllmain.cpp index d413aeb714..454dc193b2 100644 --- a/src/AspNetCore/Src/dllmain.cpp +++ b/src/AspNetCore/Src/dllmain.cpp @@ -160,7 +160,7 @@ HRESULT if (fDisableANCM) { - UTILITY::LogEventF(g_hEventLog, + UTILITY::LogEvent(g_hEventLog, EVENTLOG_WARNING_TYPE, ASPNETCORE_EVENT_MODULE_DISABLED, ASPNETCORE_EVENT_MODULE_DISABLED_MSG); diff --git a/src/CommonLib/utility.cxx b/src/CommonLib/utility.cxx index d4f37e0950..9a857921df 100644 --- a/src/CommonLib/utility.cxx +++ b/src/CommonLib/utility.cxx @@ -637,11 +637,11 @@ UTILITY::LogEventF( ... ) { - STACK_STRU ( strEventMsg, 256 ); - va_list argsList; va_start(argsList, pstrMsg); + STACK_STRU ( strEventMsg, 256 ); + if (SUCCEEDED(strEventMsg.SafeSnwprintf( pstrMsg, argsList)))