Author: peterw
Date: Fri Nov 23 19:19:57 2007
New Revision: 30697
URL: http://svn.reactos.org/svn/reactos?rev=30697&view=rev
Log:
- Fix reladdr2line.cmd.
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/reladdr2line.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/reladdr2line.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/rel…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/reladdr2line.cmd (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/reladdr2line.cmd Fri Nov 23 19:19:57 2007
@@ -45,8 +45,8 @@
echo ERROR: You must specify a path/file to examine.
goto :EOC
)
-if not exist "%_1%\." (
- echo ERROR: The path specified doesn't seem to exist.
+if "%_2%" == "" (
+ echo ERROR: You must specify a address to analyze.
goto :EOC
)
echo %_1%
@@ -70,10 +70,6 @@
)
if "%_2%" == "" (
set /p _2="Please enter the address you would like to analyze: "
- if "%_2%" == "" (
- echo ERROR: You must specify a address to analyze.
- goto :EOC
- )
)
goto :EOF
Author: cfinck
Date: Fri Nov 23 18:53:57 2007
New Revision: 30696
URL: http://svn.reactos.org/svn/reactos?rev=30696&view=rev
Log:
When someone tries to copy a file over itself, show an error message.
We already had such a check in the code, but after Brandon's copy.c rewrite in r16561, it never got called.
I removed the old check now and put a new one at the right position.
See issue #2827 for more details.
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 (original)
+++ trunk/reactos/base/shell/cmd/copy.c Fri Nov 23 18:53:57 2007
@@ -173,16 +173,6 @@
}
else if (!append)
{
- if (!_tcscmp (dest, source))
- {
- LoadString(CMD_ModuleHandle, STRING_COPY_ERROR2, szMsg, RC_STRING_MAX_SIZE);
- ConOutPrintf(szMsg, source);
-
- CloseHandle (hFileSrc);
- nErrorLevel = 1;
- return 0;
- }
-
#ifdef _DEBUG
DebugPrintf (_T("SetFileAttributes (%s, FILE_ATTRIBUTE_NORMAL);\n"), dest);
#endif
@@ -830,7 +820,13 @@
/* Check to see if the file is the same file */
if(!bTouch && !_tcscmp (tmpSrcPath, tmpDestPath))
- continue;
+ {
+ LoadString(CMD_ModuleHandle, STRING_COPY_ERROR2, szMsg, RC_STRING_MAX_SIZE);
+ ConOutPrintf(szMsg);
+
+ nErrorLevel = 1;
+ break;
+ }
/* Handle any overriding / prompting that needs to be done */
if(((!(dwFlags & COPY_NO_PROMPT) && IsExistingFile (tmpDestPath)) || dwFlags & COPY_PROMPT) && !bTouch)