From 06b3d2634d2ba27a86ed5d29ac44a4a25c036c4e Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 7 Apr 2013 08:53:37 +0000 Subject: [PATCH] [CMD] Fix a bug in path command where PATH variable could never be read if it was bigger than ENV_BUFFER_SIZE svn path=/trunk/; revision=58703 --- reactos/base/shell/cmd/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/base/shell/cmd/path.c b/reactos/base/shell/cmd/path.c index eb419a75cfb..6d765eeb49a 100644 --- a/reactos/base/shell/cmd/path.c +++ b/reactos/base/shell/cmd/path.c @@ -61,7 +61,7 @@ INT cmd_path (LPTSTR param) 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);