iTunesPlugin: Same fix as r997.

This commit is contained in:
Birunthan Mohanathas 2011-10-12 10:08:37 +00:00
parent 21f55c0ebb
commit 7091b46689

View File

@ -450,7 +450,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
CoInitialized = true;
}
if (CoInitialized && !InstanceCreated && ::FindWindow(L"iTunes", L"iTunes"))
if (CoInitialized && !InstanceCreated && ::FindWindow(L"ITWindow", L"iTunes"))
{
if (SUCCEEDED(iTunes.CreateInstance(CLSID_iTunesApp, NULL, CLSCTX_LOCAL_SERVER)))
{
@ -495,7 +495,7 @@ UINT Update(UINT id)
if (!CoInitialized || !InstanceCreated)
{
// Check if the iTunes window has appeared
if (::FindWindow(L"iTunes", L"iTunes"))
if (::FindWindow(L"ITWindow", L"iTunes"))
{
if (!iTunesAboutToPromptUserToQuit && SUCCEEDED(iTunes.CreateInstance(CLSID_iTunesApp, NULL, CLSCTX_LOCAL_SERVER)))
{