summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
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);
}