diff --git a/Plugins/PluginiTunes/iTunesPlugin.cpp b/Plugins/PluginiTunes/iTunesPlugin.cpp index 94804844..4ec3873a 100644 --- a/Plugins/PluginiTunes/iTunesPlugin.cpp +++ b/Plugins/PluginiTunes/iTunesPlugin.cpp @@ -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; } diff --git a/revision-number.h b/revision-number.h index 2e541cfb..d00e65c1 100644 --- a/revision-number.h +++ b/revision-number.h @@ -1,2 +1,2 @@ #pragma once -const int revision_number = 180; \ No newline at end of file +const int revision_number = 181; \ No newline at end of file