mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added couple of NULL checks for the iTunesPlugin.
This commit is contained in:
parent
a6c20aad64
commit
8d6fd32613
@ -386,7 +386,8 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
|
|||||||
|
|
||||||
const wchar_t* type = ReadConfigString(section, L"Command", L"");
|
const wchar_t* type = ReadConfigString(section, L"Command", L"");
|
||||||
for(int i = 0; i < COMMAND_COUNT; i++)
|
for(int i = 0; i < COMMAND_COUNT; i++)
|
||||||
if (wcsicmp(CommandName[i], type) == 0)
|
{
|
||||||
|
if (CommandName[i] && type && wcsicmp(CommandName[i], type) == 0)
|
||||||
{
|
{
|
||||||
CommandIdMap[id] = (COMMAND_TYPE)i;
|
CommandIdMap[id] = (COMMAND_TYPE)i;
|
||||||
|
|
||||||
@ -396,6 +397,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
|
|||||||
wcscpy(DefaultTrackArtworkPath, defaultArtwork);
|
wcscpy(DefaultTrackArtworkPath, defaultArtwork);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
const int revision_number = 180;
|
const int revision_number = 181;
|
Loading…
Reference in New Issue
Block a user