Author: fireball
Date: Sat Jul 14 11:54:07 2012
New Revision: 56887

URL: http://svn.reactos.org/svn/reactos?rev=56887&view=rev
Log:
[EXPLORER_NEW]
- Revert r56865, it duplicates same action (expanding the var), spotted by 
Thomas Faber.
See issue #6053 for more details.

Modified:
    trunk/reactos/base/shell/explorer/services/startup.c

Modified: trunk/reactos/base/shell/explorer/services/startup.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/services/startup.c?rev=56887&r1=56886&r2=56887&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/services/startup.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/services/startup.c [iso-8859-1] Sat Jul 
14 11:54:07 2012
@@ -364,7 +364,6 @@
     {
         DWORD nValLength=nMaxValue, nDataLength=nMaxCmdLine;
         DWORD type;
-        WCHAR szCmdLineExp[MAX_PATH+1]= L"\0";
 
         --i;
 
@@ -391,8 +390,7 @@
             continue;
         }
 
-        ExpandEnvironmentStrings(szCmdLine, szCmdLineExp, 
sizeof(szCmdLineExp));
-        if ((res=runCmd(szCmdLineExp, NULL, bSynchronous, 
FALSE))==INVALID_RUNCMD_RETURN)
+        if ((res=runCmd(szCmdLine, NULL, bSynchronous, 
FALSE))==INVALID_RUNCMD_RETURN)
         {
             printf("Error running cmd #%ld (%ld)\n", i, GetLastError());
         }


Reply via email to