Author: pschweitzer Date: Sun Apr 7 08:53:37 2013 New Revision: 58703
URL: http://svn.reactos.org/svn/reactos?rev=58703&view=rev Log: [CMD] Fix a bug in path command where PATH variable could never be read if it was bigger than ENV_BUFFER_SIZE
Modified: trunk/reactos/base/shell/cmd/path.c
Modified: trunk/reactos/base/shell/cmd/path.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/path.c?rev=5... ============================================================================== --- trunk/reactos/base/shell/cmd/path.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/cmd/path.c [iso-8859-1] Sun Apr 7 08:53:37 2013 @@ -61,7 +61,7 @@ else if (dwBuffer > ENV_BUFFER_SIZE) { pszBuffer = (LPTSTR)cmd_realloc (pszBuffer, dwBuffer * sizeof (TCHAR)); - GetEnvironmentVariable (_T("PATH"), pszBuffer, ENV_BUFFER_SIZE); + GetEnvironmentVariable (_T("PATH"), pszBuffer, dwBuffer); }
ConOutPrintf (_T("PATH=%s\n"), pszBuffer);