minor build fixes for msvc
Modified: trunk/reactos/subsys/system/cmd/copy.c
Modified: trunk/reactos/subsys/system/cmd/dir.c
Modified: trunk/reactos/subsys/system/cmd/filecomp.c
_____
Modified: trunk/reactos/subsys/system/cmd/copy.c
--- trunk/reactos/subsys/system/cmd/copy.c 2005-08-25 22:50:44 UTC
(rev 17551)
+++ trunk/reactos/subsys/system/cmd/copy.c 2005-08-25 23:20:34 UTC
(rev 17552)
@@ -54,7 +54,7 @@
int copy (TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append,
DWORD lpdwFlags, BOOL bTouch)
{
TCHAR szMsg[RC_STRING_MAX_SIZE];
- FILETIME srctime;
+ FILETIME srctime,NewFileTime;
HANDLE hFileSrc;
HANDLE hFileDest;
LPBYTE buffer;
@@ -66,6 +66,7 @@
TCHAR TrueDest[MAX_PATH];
TCHAR TempSrc[MAX_PATH];
TCHAR * FileName;
+ SYSTEMTIME CurrentTime;
#ifdef _DEBUG
@@ -84,9 +85,6 @@
return 0;
}
- FILETIME NewFileTime;
- SYSTEMTIME CurrentTime;
-
GetSystemTime(&CurrentTime);
SystemTimeToFileTime(&CurrentTime, &NewFileTime);
if(SetFileTime(hFileSrc,(LPFILETIME) NULL, (LPFILETIME)
NULL, &NewFileTime))
_____
Modified: trunk/reactos/subsys/system/cmd/dir.c
--- trunk/reactos/subsys/system/cmd/dir.c 2005-08-25 22:50:44 UTC
(rev 17551)
+++ trunk/reactos/subsys/system/cmd/dir.c 2005-08-25 23:20:34 UTC
(rev 17552)
@@ -1990,7 +1990,6 @@
ConOutPrintf("(L) Lowercase : %i\n", stFlags.bLowerCase );
ConOutPrintf("(N) New : %i\n", stFlags.bNewLongList );
ConOutPrintf("(O) Order : %i\n",
stFlags.stOrderBy.sCriteriaCount );
- int i;
for (i =0;i<stFlags.stOrderBy.sCriteriaCount;i++)
ConOutPrintf(" Order Criteria [%i]: %i (Reversed:
%i)\n",i, stFlags.stOrderBy.eCriteria[i],
stFlags.stOrderBy.bCriteriaRev[i] );
ConOutPrintf("(P) Pause : %i\n", stFlags.bPause );
_____
Modified: trunk/reactos/subsys/system/cmd/filecomp.c
--- trunk/reactos/subsys/system/cmd/filecomp.c 2005-08-25 22:50:44 UTC
(rev 17551)
+++ trunk/reactos/subsys/system/cmd/filecomp.c 2005-08-25 23:20:34 UTC
(rev 17552)
@@ -541,7 +541,6 @@
/* Keeps track of what element was last selected */
static INT Sel;
BOOL NeededQuote = FALSE;
-
strOut[0] = _T('\0');
/* Copy the string, str can be edited and orginal should not be
*/
@@ -677,10 +676,12 @@
/* space in the name */
if(_tcschr(FileList[Sel].Name, _T(' ')))
{
+ INT LastSpace;
+ BOOL bInside;
/* It needs a " at the end */
NeededQuote = TRUE;
- INT LastSpace = -1;
- BOOL bInside = FALSE;
+ LastSpace = -1;
+ bInside = FALSE;
/* Find the place to put the " at the start */
for(i = 0; i < _tcslen(szPrefix); i++)
{
Show replies by date