mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:05:43 +00:00
Fix by Royce3:
Don't wait 10 sec after starting an app via a .lnk file (bug 1107) svn path=/trunk/; revision=20200
This commit is contained in:
parent
518f3087ef
commit
11dcbab404
1 changed files with 2 additions and 9 deletions
|
@ -2549,7 +2549,7 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici )
|
|||
|
||||
memset( &sei, 0, sizeof sei );
|
||||
sei.cbSize = sizeof sei;
|
||||
sei.fMask = SEE_MASK_UNICODE | SEE_MASK_NOCLOSEPROCESS;
|
||||
sei.fMask = SEE_MASK_UNICODE;
|
||||
sei.lpFile = path;
|
||||
sei.nShow = This->iShowCmd;
|
||||
sei.lpIDList = This->pPidl;
|
||||
|
@ -2557,15 +2557,8 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici )
|
|||
sei.lpParameters = args;
|
||||
sei.lpVerb = szOpen;
|
||||
|
||||
if( ShellExecuteExW( &sei ) )
|
||||
{
|
||||
if ( sei.hProcess )
|
||||
{
|
||||
WaitForSingleObject( sei.hProcess, 10000 );
|
||||
CloseHandle( sei.hProcess );
|
||||
}
|
||||
if ( ShellExecuteExW( &sei ) && sei.hInstApp > 32 )
|
||||
r = S_OK;
|
||||
}
|
||||
else
|
||||
r = E_FAIL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue