SF1793346 Replace deprecated wcstombs and remove unused variables

This commit is contained in:
clay_shooter
2007-09-13 01:07:36 +00:00
parent 8f36ecc309
commit 97b1a279cc
3 changed files with 6 additions and 4 deletions

View File

@@ -319,7 +319,8 @@ static char* BasicToCharString(const BSTR inBasicString)
if (charStrSize > 1)
{
charString = new char[charStrSize];
size_t len = ::wcstombs(charString, inBasicString, charStrSize);
size_t convertedSize;
::wcstombs_s(&convertedSize, charString, charStrSize, inBasicString, charStrSize);
}
else
charString = ::_strdup("");