Permalink
Browse files

[win32] Win32DllLoader::Load: convert to C-string for log

strange that it works even as std::string
  • Loading branch information...
1 parent 7ec5cec commit ef79c1da5796e39a9ef9527657d17d6900bb004f @Karlson2k Karlson2k committed Jan 15, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/cores/DllLoader/Win32DllLoader.cpp
@@ -171,7 +171,7 @@ bool Win32DllLoader::Load()
{
std::string strMessage;
g_charsetConverter.wToUTF8(std::wstring(lpMsgBuf, strLen), strMessage);
- CLog::Log(LOGERROR, "%s: Failed to load \"%s\" with error %lu: \"%s\"", __FUNCTION__, CSpecialProtocol::TranslatePath(strFileName).c_str(), dw, strMessage);
+ CLog::Log(LOGERROR, "%s: Failed to load \"%s\" with error %lu: \"%s\"", __FUNCTION__, CSpecialProtocol::TranslatePath(strFileName).c_str(), dw, strMessage.c_str());
}
else
CLog::Log(LOGERROR, "%s: Failed to load \"%s\" with error %lu", __FUNCTION__, CSpecialProtocol::TranslatePath(strFileName).c_str(), dw);

0 comments on commit ef79c1d

Please sign in to comment.