mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
last try to fix NULL bug
svn path=/trunk/; revision=16588
This commit is contained in:
@@ -276,8 +276,10 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param)
|
||||
/* Get the envor value if it exists */
|
||||
evar = malloc(512 * sizeof(TCHAR));
|
||||
if (evar==NULL) size = 0;
|
||||
|
||||
size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);
|
||||
else
|
||||
{
|
||||
size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);
|
||||
}
|
||||
if ((size > 1) && (size > 512))
|
||||
{
|
||||
evar = realloc(evar,size * sizeof(TCHAR) );
|
||||
|
||||
Reference in New Issue
Block a user