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;
TCHAR TrueDest[MAX_PATH];
TCHAR TempSrc[MAX_PATH];
TCHAR * FileName;
+ SYSTEMTIME CurrentTime;
#ifdef _DEBUG
return 0;
}
- FILETIME NewFileTime;
- SYSTEMTIME CurrentTime;
-
GetSystemTime(&CurrentTime);
SystemTimeToFileTime(&CurrentTime, &NewFileTime);
if(SetFileTime(hFileSrc,(LPFILETIME) NULL, (LPFILETIME) NULL, &NewFileTime))
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 );
/* 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 */
/* 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++)
{