Author: fireball
Date: Thu Feb 19 06:51:57 2009
New Revision: 39684
URL:
http://svn.reactos.org/svn/reactos?rev=39684&view=rev
Log:
- Properly free a buffer allocated during "copy" command. Fixes cmd.exe crash
when copy operation experiences a write error or is being interrupted with a Ctrl+C
keypress.
Modified:
trunk/reactos/base/shell/cmd/copy.c
Modified: trunk/reactos/base/shell/cmd/copy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/copy.c?rev=…
==============================================================================
--- trunk/reactos/base/shell/cmd/copy.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/copy.c [iso-8859-1] Thu Feb 19 06:51:57 2009
@@ -232,7 +232,7 @@
{
ConOutResPuts(STRING_COPY_ERROR3);
- cmd_free (buffer);
+ VirtualFree (buffer, 0, MEM_RELEASE);
CloseHandle (hFileDest);
CloseHandle (hFileSrc);
nErrorLevel = 1;