Don't wait 10 sec after starting an app via a .lnk file (bug 1107)
svn path=/trunk/; revision=20200
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;
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;