- Support for dir /w and /b flags
- Fixed a couple of unclosed FindFirst/FindNext pairs

diff --git a/programs/wcmd/builtins.c b/programs/wcmd/builtins.c
index 6559139..00abdfd 100644
--- a/programs/wcmd/builtins.c
+++ b/programs/wcmd/builtins.c
@@ -172,6 +172,7 @@
   if ((strchr(param1,'*') == NULL) && (strchr(param1,'?') == NULL)
   	&& (!recurse) && (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
     strcat (param1, "\\*");
+    FindClose(hff);
     WCMD_delete (1);
     return;
   }
@@ -192,6 +193,7 @@
   }
   else {
     if (!DeleteFile (param1)) WCMD_print_error ();
+    FindClose (hff);
   }
 }