[ros-diffs] [fireball] 39684: - 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.
fireball at svn.reactos.org
fireball at svn.reactos.org
Thu Feb 19 13:51:59 CET 2009
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=39684&r1=39683&r2=39684&view=diff
==============================================================================
--- 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;
More information about the Ros-diffs
mailing list