commit 6d56420ddd18623b3d8c225abd83fdcc673ce40c
parent edae6e48649e222512c8e3c0b964ca5360ec3b7d
Author: yao-msft <50888816+yao-msft@users.noreply.github.com>
Date: Sun, 19 Sep 2021 19:38:25 -0700
Fix debug build failure (#1485)
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/AppInstallerCommonCore/JsonSchemaValidation.cpp b/src/AppInstallerCommonCore/JsonSchemaValidation.cpp
@@ -43,7 +43,7 @@ namespace AppInstaller::JsonSchema
std::string errorMsg;
if (!jsonReader->parse(schemaStr.c_str(), schemaStr.c_str() + schemaLength, &schemaJson, &errorMsg))
{
- THROW_HR_MSG(E_UNEXPECTED, "Jsoncpp parser failed to parse the schema doc. Reason: %s", errorMsg.c_str());
+ THROW_HR_MSG(E_UNEXPECTED, "Jsoncpp parser failed to parse the schema doc. Reason: %hs", errorMsg.c_str());
}
return schemaJson;
diff --git a/src/AppInstallerCommonCore/MsixInfo.cpp b/src/AppInstallerCommonCore/MsixInfo.cpp
@@ -309,7 +309,7 @@ namespace AppInstaller::Msix
else
{
THROW_HR_MSG(HRESULT_FROM_WIN32(ERROR_INSTALL_OPEN_PACKAGE_FAILED),
- "Failed to open uri as msix package or bundle. Uri: %s", uriStr.data());
+ "Failed to open uri as msix package or bundle. Uri: %hs", uriStr.data());
}
}
diff --git a/src/AppInstallerRepositoryCore/Microsoft/ConfigurableTestSourceFactory.cpp b/src/AppInstallerRepositoryCore/Microsoft/ConfigurableTestSourceFactory.cpp
@@ -35,7 +35,7 @@ namespace AppInstaller::Repository::Microsoft
else
{
AICLI_LOG(Repo, Error, << "Error parsing test source config: " << error);
- THROW_HR_MSG(E_INVALIDARG, "%S", error.c_str());
+ THROW_HR_MSG(E_INVALIDARG, "%hs", error.c_str());
}
}