This commit is contained in:
Birunthan Mohanathas 2010-12-25 17:13:50 +00:00
parent 2e173b69d7
commit c9c477868f

View File

@ -781,10 +781,6 @@ void ExecuteBang(LPCTSTR args, UINT id)
}
}
switch (command)
{
case COMMAND_POWER:
{
if (!InstanceCreated)
{
if (COMMAND_POWER == command && CoInitialized && SUCCEEDED(iTunes.CreateInstance(CLSID_iTunesApp, NULL, CLSCTX_LOCAL_SERVER)))
@ -796,16 +792,18 @@ void ExecuteBang(LPCTSTR args, UINT id)
}
InstanceCreated = true;
}
break;
return;
}
else
switch (command)
{
case COMMAND_POWER:
{
iTunes->Quit();
iTunes.Release();
InstanceCreated = false;
break;
}
}
case COMMAND_TOGGLEITUNES:
{
IITBrowserWindowPtr browserWindow;