mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Fixed: Multibang [] not assumed when [Measure] is replaced in CConfigParser::ReadString().
- Minor changes of ConvertToXXX(): Get an appropriate buffer size to convert the string. And using [] when deleting arrays. - Fixed a few memory leaks. - It's now possible to send the !BANG command when all windows are "On Desktop". (Rainmeter.exe and WebParser)
This commit is contained in:
@ -682,11 +682,11 @@ int CRainmeter::Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath)
|
||||
WCHAR* pos = wcsrchr(tmpName, L'\\');
|
||||
if(pos)
|
||||
{
|
||||
*(pos + 1)='\0';
|
||||
*(pos + 1) = L'\0';
|
||||
}
|
||||
else
|
||||
{
|
||||
tmpName[0]='\0';
|
||||
tmpName[0] = L'\0';
|
||||
}
|
||||
|
||||
if(!c_DummyLitestep) InitalizeLitestep();
|
||||
@ -1770,7 +1770,7 @@ PLATFORM CRainmeter::IsNT()
|
||||
{
|
||||
// You got NT
|
||||
if(osvi.dwMajorVersion <= 4) return PLATFORM_NT4;
|
||||
if(osvi.dwMajorVersion == 5) return PLATFORM_2K;
|
||||
if(osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0) return PLATFORM_2K;
|
||||
return PLATFORM_XP;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user