mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed issue with iTunesPlugin: http://rainmeter.net/forum/viewtopic.php?f=14&t=6363&p=40202
This commit is contained in:
parent
2e173b69d7
commit
c9c477868f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user