Discontinue terminal punctuation in exception messages

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-03-06 16:03:11 +01:00
parent db23a5a984
commit 12046216e9
4 changed files with 7 additions and 7 deletions

View File

@ -47,7 +47,7 @@ For those situations where one must quckly compose a temporary string using `spr
if (dwMaxSendPacketSize < sizeof(EapPacket)) if (dwMaxSendPacketSize < sizeof(EapPacket))
throw std::invalid_argument( throw std::invalid_argument(
winstd::string_printf( winstd::string_printf(
"Maximum packet size too small (minimum: %zu, available: %u).", "Maximum packet size too small (minimum: %zu, available: %u)",
sizeof(EapPacket) + 1, sizeof(EapPacket) + 1,
dwMaxSendPacketSize)); dwMaxSendPacketSize));
``` ```

View File

@ -276,7 +276,7 @@ namespace winstd
vt = VT_EMPTY; vt = VT_EMPTY;
const HRESULT hr = VariantCopy(this, &varSrc); const HRESULT hr = VariantCopy(this, &varSrc);
if (FAILED(hr)) if (FAILED(hr))
throw winstd::com_runtime_error(hr, "VariantCopy failed."); throw winstd::com_runtime_error(hr, "VariantCopy failed");
} }
/// ///
@ -472,7 +472,7 @@ namespace winstd
LPSAFEARRAY pCopy; LPSAFEARRAY pCopy;
const HRESULT hr = SafeArrayCopy(const_cast<LPSAFEARRAY>(pSrc), &pCopy); const HRESULT hr = SafeArrayCopy(const_cast<LPSAFEARRAY>(pSrc), &pCopy);
if (FAILED(hr)) if (FAILED(hr))
throw winstd::com_runtime_error(hr, "SafeArrayCopy failed."); throw winstd::com_runtime_error(hr, "SafeArrayCopy failed");
SafeArrayGetVartype(const_cast<LPSAFEARRAY>(pSrc), &vt); SafeArrayGetVartype(const_cast<LPSAFEARRAY>(pSrc), &vt);
vt |= VT_ARRAY; vt |= VT_ARRAY;
@ -495,7 +495,7 @@ namespace winstd
if (this != &varSrc) { if (this != &varSrc) {
const HRESULT hr = VariantCopy(this, &varSrc); const HRESULT hr = VariantCopy(this, &varSrc);
if (FAILED(hr)) if (FAILED(hr))
throw winstd::com_runtime_error(hr, "VariantCopy failed."); throw winstd::com_runtime_error(hr, "VariantCopy failed");
} }
return *this; return *this;
} }

View File

@ -693,7 +693,7 @@ namespace winstd
cbData = other.cbData; cbData = other.cbData;
if (cbData) { if (cbData) {
pbData = static_cast<BYTE*>(LocalAlloc(LMEM_FIXED, other.cbData)); pbData = static_cast<BYTE*>(LocalAlloc(LMEM_FIXED, other.cbData));
if (!pbData) throw win_runtime_error("LocalAlloc failed."); if (!pbData) throw win_runtime_error("LocalAlloc failed");
memcpy(pbData, other.pbData, other.cbData); memcpy(pbData, other.pbData, other.cbData);
} else } else
pbData = NULL; pbData = NULL;
@ -730,7 +730,7 @@ namespace winstd
LocalFree(pbData); LocalFree(pbData);
if (cbData) { if (cbData) {
pbData = static_cast<BYTE*>(LocalAlloc(LMEM_FIXED, other.cbData)); pbData = static_cast<BYTE*>(LocalAlloc(LMEM_FIXED, other.cbData));
if (!pbData) throw win_runtime_error("LocalAlloc failed."); if (!pbData) throw win_runtime_error("LocalAlloc failed");
memcpy(pbData, other.pbData, other.cbData); memcpy(pbData, other.pbData, other.cbData);
} else } else
pbData = NULL; pbData = NULL;

View File

@ -35,7 +35,7 @@ namespace winstd
{ {
const LONG lResult = WinVerifyTrust(m_hwnd, &m_action, &m_wtd); const LONG lResult = WinVerifyTrust(m_hwnd, &m_action, &m_wtd);
if (lResult != ERROR_SUCCESS) if (lResult != ERROR_SUCCESS)
throw win_runtime_error(lResult, "WinVerifyTrust failed."); throw win_runtime_error(lResult, "WinVerifyTrust failed");
} }
/// ///