Permalink
Browse files

[win32] Environment: remove leftover from pre-Vista days

  • Loading branch information...
1 parent 07ab047 commit 11258cf6a99d4858f4ad7384a3b069ba30d4bc86 @Karlson2k Karlson2k committed Nov 7, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 xbmc/utils/Environment.cpp
@@ -77,12 +77,11 @@ std::string CEnvironment::win32ConvertWToUtf8(const std::wstring &text, bool *re
if (resultSuccessful != NULL)
*resultSuccessful = false;
- static const DWORD convFlags = /*WC_ERR_INVALID_CHARS*/ 0x80;
- int bufSize = WideCharToMultiByte(CP_UTF8, convFlags, text.c_str(), -1, NULL, 0, NULL, NULL);
+ int bufSize = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, text.c_str(), -1, NULL, 0, NULL, NULL);
if (bufSize == 0)
return "";
char * converted = new char[bufSize];
- if (WideCharToMultiByte(CP_UTF8, convFlags, text.c_str(), -1, converted, bufSize, NULL, NULL) != bufSize)
+ if (WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, text.c_str(), -1, converted, bufSize, NULL, NULL) != bufSize)
{
delete[] converted;
return "";

0 comments on commit 11258cf

Please sign in to comment.