summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2018-03-06 20:24:07 +0300
committerKirill Volinsky <mataes2007@gmail.com>2018-03-07 12:54:58 +0300
commitbebafc42ab6199e86d4c2c901fac8d091bfffef0 (patch)
treef3961879845e89688c6628dccf1a3c9cd3ebb9b3 /include/m_string.h
parent7e9fef8a6ff35c63f9217fcc618d77f660e45245 (diff)
some fixes
Diffstat (limited to 'include/m_string.h')
-rw-r--r--include/m_string.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/m_string.h b/include/m_string.h
index 1077298bcb..e81376da1f 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -436,18 +436,12 @@ public:
static void ConvertToOem(_CharType* pstrString, size_t size)
{
- if (size > UINT_MAX) {
- return;
- }
DWORD dwSize = static_cast<DWORD>(size);
::CharToOemBuffA(pstrString, pstrString, dwSize);
}
static void ConvertToAnsi(_CharType* pstrString, size_t size)
{
- if (size > UINT_MAX)
- return;
-
DWORD dwSize = static_cast<DWORD>(size);
::OemToCharBuffA(pstrString, pstrString, dwSize);
}