Discontinue terminal punctuation in exception messages
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
db23a5a984
commit
12046216e9
@ -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));
|
||||||
```
|
```
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user