projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c52fd56
)
- Properly free a buffer allocated during "copy" command. Fixes cmd.exe crash when...
author
Aleksey Bragin
<aleksey@reactos.org>
Thu, 19 Feb 2009 12:51:57 +0000
(12:51 +0000)
committer
Aleksey Bragin
<aleksey@reactos.org>
Thu, 19 Feb 2009 12:51:57 +0000
(12:51 +0000)
svn path=/trunk/; revision=39684
reactos/base/shell/cmd/copy.c
patch
|
blob
|
history
diff --git
a/reactos/base/shell/cmd/copy.c
b/reactos/base/shell/cmd/copy.c
index
e01b725
..
d451fea
100644
(file)
--- a/
reactos/base/shell/cmd/copy.c
+++ b/
reactos/base/shell/cmd/copy.c
@@
-232,7
+232,7
@@
copy (TCHAR source[MAX_PATH],
{
ConOutResPuts(STRING_COPY_ERROR3);
-
cmd_free (buffer
);
+
VirtualFree (buffer, 0, MEM_RELEASE
);
CloseHandle (hFileDest);
CloseHandle (hFileSrc);
nErrorLevel = 1;