[ros-diffs] [gvg] 20199: Fix by Royce3:

gvg at svn.reactos.com gvg at svn.reactos.com
Thu Dec 15 21:59:07 CET 2005


Fix by Royce3:
Don't wait 10 sec after starting an app via a .lnk file
Modified: branches/ros-branch-0_2_9/reactos/lib/shell32/shelllink.c
  _____  

Modified: branches/ros-branch-0_2_9/reactos/lib/shell32/shelllink.c
--- branches/ros-branch-0_2_9/reactos/lib/shell32/shelllink.c
2005-12-15 20:50:04 UTC (rev 20198)
+++ branches/ros-branch-0_2_9/reactos/lib/shell32/shelllink.c
2005-12-15 20:58:51 UTC (rev 20199)
@@ -2549,7 +2549,7 @@

 
     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 @@
     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;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051215/d9a555d4/attachment.html


More information about the Ros-diffs mailing list