Put FindClose onto the correct position.

svn path=/trunk/; revision=16896
This commit is contained in:
Hartmut Birr 2005-07-30 18:32:18 +00:00
parent 3e4d8abf36
commit 498a7947fe

View file

@ -528,7 +528,7 @@ INT CommandDelete (LPTSTR cmd, LPTSTR param)
{
/*remove the - from the front to get the real name*/
_tcscpy (exfileName , arg[ii]);
szFileName = strtok (exfileName,"-");
szFileName = _tcstok (exfileName,_T("-"));
GetFullPathName (szFileName,
MAX_PATH,
szFullPath,
@ -619,10 +619,10 @@ INT CommandDelete (LPTSTR cmd, LPTSTR param)
}
}
while (FindNextFile (hFile, &f));
FindClose (hFile);
}
while(bSubFileFound);
}
FindClose (hFile);
freep (arg);