Update SAL of no longer optional exception text

This was overlooked in b7de0817889088bc524d0e6a9d9eff3e412aec49 and
2d9e445e1838d67ff642af06fb9417920e36ca7a.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2025-01-21 09:09:12 +01:00
parent 2d9e445e18
commit a0aa5f177d
3 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ namespace winstd
/// \param[in] num COM error code
/// \param[in] msg Error message
///
com_runtime_error(_In_ error_type num, _In_opt_z_ const char* msg) : num_runtime_error<HRESULT>(num, std::string(msg) + ": " + message(num))
com_runtime_error(_In_ error_type num, _In_z_ const char* msg) : num_runtime_error<HRESULT>(num, std::string(msg) + ": " + message(num))
{
}

View File

@ -1350,7 +1350,7 @@ namespace winstd
/// \param[in] num Numeric error code
/// \param[in] msg Error message
///
num_runtime_error(_In_ error_type num, _In_opt_z_ const char *msg) :
num_runtime_error(_In_ error_type num, _In_z_ const char *msg) :
m_num(num),
runtime_error(msg)
{}

View File

@ -363,7 +363,7 @@ namespace winstd
/// \param[in] num Security provider error code
/// \param[in] msg Error message
///
sec_runtime_error(_In_ error_type num, _In_opt_z_ const char *msg) : num_runtime_error<SECURITY_STATUS>(num, msg)
sec_runtime_error(_In_ error_type num, _In_z_ const char *msg) : num_runtime_error<SECURITY_STATUS>(num, msg)
{}
///