Skip to content

Commit

Permalink
Fix debug build failure (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-msft committed Sep 20, 2021
1 parent edae6e4 commit 6d56420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AppInstallerCommonCore/JsonSchemaValidation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCommonCore/MsixInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 6d56420

Please sign in to comment.