From d096ba484c52f3ca074ead89988a77f38e721e6e Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Sat, 14 Jul 2012 11:54:07 +0000 Subject: [PATCH] [EXPLORER_NEW] - Revert r56865, it duplicates same action (expanding the var), spotted by Thomas Faber. See issue #6053 for more details. svn path=/trunk/; revision=56887 --- reactos/base/shell/explorer/services/startup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reactos/base/shell/explorer/services/startup.c b/reactos/base/shell/explorer/services/startup.c index 083e6bf4851..c8f79623dd9 100644 --- a/reactos/base/shell/explorer/services/startup.c +++ b/reactos/base/shell/explorer/services/startup.c @@ -364,7 +364,6 @@ static BOOL ProcessRunKeys(HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete, { DWORD nValLength=nMaxValue, nDataLength=nMaxCmdLine; DWORD type; - WCHAR szCmdLineExp[MAX_PATH+1]= L"\0"; --i; @@ -391,8 +390,7 @@ static BOOL ProcessRunKeys(HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete, 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()); }