Added couple of NULL checks for the iTunesPlugin.

This commit is contained in:
Kimmo Pekkola 2009-08-14 16:06:42 +00:00
parent a6c20aad64
commit 8d6fd32613
2 changed files with 4 additions and 2 deletions

View File

@ -386,7 +386,8 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
const wchar_t* type = ReadConfigString(section, L"Command", L"");
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;
@ -396,6 +397,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
wcscpy(DefaultTrackArtworkPath, defaultArtwork);
}
}
}
return 0;
}

View File

@ -1,2 +1,2 @@
#pragma once
const int revision_number = 180;
const int revision_number = 181;