mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
last try to fix NULL bug
svn path=/trunk/; revision=16588
This commit is contained in:
parent
8b10660c85
commit
8aa7fc3fb8
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
||||
else
|
||||
{
|
||||
size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);
|
||||
}
|
||||
if ((size > 1) && (size > 512))
|
||||
{
|
||||
evar = realloc(evar,size * sizeof(TCHAR) );
|
||||
|
|
Loading…
Reference in a new issue