Dan Kegel dank@kegel.com writes:
@@ -771,13 +771,16 @@ BOOL WCMD_delete (WCHAR *command, BOOL expectDir) {
DIRECTORY_STACK *nextDir; WCHAR subParm[MAX_PATH];
static const WCHAR quoteW[] = { '"', 0 }; /* Work out search parameter in sub dir */
strcpyW (subParm, thisDir);
strcpyW (subParm, quoteW);
strcatW (subParm, thisDir); strcatW (subParm, fd.cFileName); strcatW (subParm, slashW); strcatW (subParm, fname); strcatW (subParm, ext);
strcatW (subParm, quoteW);
That's ugly. File names should not go through command processing again.