Added debug messages.
[reactos.git] / reactos / lib / msvcrt / stdio / remove.c
index 52b04f8..5f309af 100644 (file)
@@ -2,15 +2,22 @@
 #include <msvcrt/stddef.h>
 #include <msvcrt/stdio.h>
 
+#define NDEBUG
+#include <msvcrt/msvcrtdbg.h>
+
 int remove(const char *fn)
 {
+  int result = 0;
+  DPRINT("remove('%s')\n", fn);
   if (!DeleteFileA(fn))
-    return -1;
-  return 0;
+    result = -1;
+  DPRINT("%d\n", result);
+  return result;
 }
 
 int _wremove(const wchar_t *fn)
 {
+  DPRINT("_wremove('%S')\n", fn);
   if (!DeleteFileW(fn))
     return -1;
   return 0;