From a0aa5f177df808ecf8b23f1483ada631cf274770 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 21 Jan 2025 09:09:12 +0100 Subject: [PATCH] Update SAL of no longer optional exception text This was overlooked in b7de0817889088bc524d0e6a9d9eff3e412aec49 and 2d9e445e1838d67ff642af06fb9417920e36ca7a. Signed-off-by: Simon Rozman --- include/WinStd/COM.h | 2 +- include/WinStd/Common.h | 2 +- include/WinStd/Sec.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/WinStd/COM.h b/include/WinStd/COM.h index 3eaceb59..f1faacbd 100644 --- a/include/WinStd/COM.h +++ b/include/WinStd/COM.h @@ -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(num, std::string(msg) + ": " + message(num)) + com_runtime_error(_In_ error_type num, _In_z_ const char* msg) : num_runtime_error(num, std::string(msg) + ": " + message(num)) { } diff --git a/include/WinStd/Common.h b/include/WinStd/Common.h index db493359..d94f174a 100644 --- a/include/WinStd/Common.h +++ b/include/WinStd/Common.h @@ -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) {} diff --git a/include/WinStd/Sec.h b/include/WinStd/Sec.h index 8d3e5252..2a9275d2 100644 --- a/include/WinStd/Sec.h +++ b/include/WinStd/Sec.h @@ -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(num, msg) + sec_runtime_error(_In_ error_type num, _In_z_ const char *msg) : num_runtime_error(num, msg) {} ///