[WIN32] fixed crash when looking at the system storage info. fixes #14716
authorwsoltys <wiso@no.way>
Sun, 24 Nov 2013 13:01:29 +0000 (14:01 +0100)
committerwsoltys <wiso@no.way>
Sun, 24 Nov 2013 13:01:29 +0000 (14:01 +0100)
xbmc/win32/WIN32Util.cpp

index 5782023..eb8605f 100644 (file)
@@ -355,7 +355,7 @@ std::vector<CStdString> CWIN32Util::GetDiskUsage()
       if( DRIVE_FIXED == GetDriveType( strDrive.c_str()  ) &&
         GetDiskFreeSpaceEx( ( strDrive.c_str() ), NULL, &ULTotal, &ULTotalFree ) )
       {
-        strRet = StringUtils::Format("%s %d MB %s",strDrive.c_str(), int(ULTotalFree.QuadPart/(1024*1024)),g_localizeStrings.Get(160));
+        strRet = StringUtils::Format("%s %d MB %s",strDrive.c_str(), int(ULTotalFree.QuadPart/(1024*1024)),g_localizeStrings.Get(160).c_str());
         result.push_back(strRet);
       }
       iPos += (strlen( pcBuffer + iPos) + 1 );