Skip to content

Commit bd18f56

Browse files
Fix HRESULT <-> bool conversion warnings (#54988)
1 parent 649d2cf commit bd18f56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Servers/IIS/AspNetCoreModuleV2/CommonLib/WebConfigConfigurationSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ std::shared_ptr<ConfigurationSection> WebConfigConfigurationSource::GetSection(c
1212
const CComBSTR applicationConfigPath = m_application.GetAppConfigPath();
1313

1414
IAppHostElement* sectionElement;
15-
if (LOG_IF_FAILED(m_manager->GetAdminSection(bstrAspNetCoreSection, applicationConfigPath, &sectionElement)))
15+
if (FAILED_LOG(m_manager->GetAdminSection(bstrAspNetCoreSection, applicationConfigPath, &sectionElement)))
1616
{
1717
return nullptr;
1818
}

src/Servers/IIS/AspNetCoreModuleV2/InProcessRequestHandler/inprocessapplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ IN_PROCESS_APPLICATION::StopClr()
7373
// Signal shutdown
7474
if (m_pShutdownEvent != nullptr)
7575
{
76-
LOG_IF_FAILED(SetEvent(m_pShutdownEvent));
76+
LOG_LAST_ERROR_IF(!SetEvent(m_pShutdownEvent));
7777
}
7878

7979
// Need to wait for either the app to be initialized, the worker thread to exit, or the shutdown timeout.

0 commit comments

Comments
 (0)