mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 22:26:31 +00:00
[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
This commit is contained in:
parent
0c286ecb18
commit
d096ba484c
|
@ -364,7 +364,6 @@ static BOOL ProcessRunKeys(HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete,
|
||||||
{
|
{
|
||||||
DWORD nValLength=nMaxValue, nDataLength=nMaxCmdLine;
|
DWORD nValLength=nMaxValue, nDataLength=nMaxCmdLine;
|
||||||
DWORD type;
|
DWORD type;
|
||||||
WCHAR szCmdLineExp[MAX_PATH+1]= L"\0";
|
|
||||||
|
|
||||||
--i;
|
--i;
|
||||||
|
|
||||||
|
@ -391,8 +390,7 @@ static BOOL ProcessRunKeys(HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
ExpandEnvironmentStrings(szCmdLine, szCmdLineExp, sizeof(szCmdLineExp));
|
if ((res=runCmd(szCmdLine, NULL, bSynchronous, FALSE))==INVALID_RUNCMD_RETURN)
|
||||||
if ((res=runCmd(szCmdLineExp, NULL, bSynchronous, FALSE))==INVALID_RUNCMD_RETURN)
|
|
||||||
{
|
{
|
||||||
printf("Error running cmd #%ld (%ld)\n", i, GetLastError());
|
printf("Error running cmd #%ld (%ld)\n", i, GetLastError());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue