Added workaround for InputText plugin. (ShellExecuteEx fails when InputText is activated.)

This commit is contained in:
spx 2010-12-05 23:33:51 +00:00
parent 96244049f0
commit d125093e89

View File

@ -1205,6 +1205,8 @@ CRainmeter::CRainmeter()
InitializeCriticalSection(&m_CsLogData); InitializeCriticalSection(&m_CsLogData);
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
INITCOMMONCONTROLSEX initCtrls; INITCOMMONCONTROLSEX initCtrls;
initCtrls.dwSize = sizeof(INITCOMMONCONTROLSEX); initCtrls.dwSize = sizeof(INITCOMMONCONTROLSEX);
initCtrls.dwICC = ICC_TAB_CLASSES; initCtrls.dwICC = ICC_TAB_CLASSES;
@ -1246,6 +1248,8 @@ CRainmeter::~CRainmeter()
UpdateDesktopWorkArea(true); UpdateDesktopWorkArea(true);
} }
CoUninitialize();
DeleteCriticalSection(&m_CsLogData); DeleteCriticalSection(&m_CsLogData);
GdiplusShutdown(m_GDIplusToken); GdiplusShutdown(m_GDIplusToken);