mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Code optimization.
This commit is contained in:
@ -373,9 +373,7 @@ HINSTANCE ExecuteCommand(HWND Owner, LPCTSTR szCommand, int nShowCmd, LPCTSTR sz
|
||||
|
||||
std::wstring dir = CRainmeter::ExtractPath(command);
|
||||
|
||||
SHELLEXECUTEINFO si;
|
||||
memset(&si, 0, sizeof(si));
|
||||
si.cbSize = sizeof(SHELLEXECUTEINFO);
|
||||
SHELLEXECUTEINFO si = {sizeof(SHELLEXECUTEINFO)};
|
||||
si.hwnd = Owner;
|
||||
si.lpVerb = szVerb;
|
||||
si.lpFile = command.c_str();
|
||||
|
Reference in New Issue
Block a user