diff --git a/include/WinStd/Common.h b/include/WinStd/Common.h index d5c28e4f..db493359 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 = nullptr) : + num_runtime_error(_In_ error_type num, _In_opt_z_ const char *msg) : m_num(num), runtime_error(msg) {} diff --git a/include/WinStd/Sec.h b/include/WinStd/Sec.h index 90bb371c..8d3e5252 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 = nullptr) : num_runtime_error(num, msg) + sec_runtime_error(_In_ error_type num, _In_opt_z_ const char *msg) : num_runtime_error(num, msg) {} ///