Re: SHELL32: some fixes for shelllink's IContextMenu::InvokeCommand method
3 Nov
2005
3 Nov
'05
6:45 a.m.
Hello Mike, On 03.11.2005 07:24:42 Mike McCormack wrote:
ChangeLog: Pass the correct verb. Add a space between extra parameters. Wait for ShellExecute to complete.
[...]
if( ShellExecuteExW( &sei ) ) + { + if (sei.hProcess) + WaitForSingleObject(sei.hProcess, 10000); r = S_OK; + } else r = E_FAIL;
You should add an "CloseHandle(sei.hProcess);" after the wait call to avoid the handle leak. Regards, Martin
7345
Age (days ago)
7345
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Fuchs