From 99285975432615276317dd261a4cfbd1aafb7ece Mon Sep 17 00:00:00 2001 From: Brandon Craig Date: Fri, 6 Mar 2015 14:37:06 -0700 Subject: [PATCH] repatch windows file delete --- classpath/java-io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java-io.cpp b/classpath/java-io.cpp index 8df96ee01e..fb34b2d99a 100644 --- a/classpath/java-io.cpp +++ b/classpath/java-io.cpp @@ -389,7 +389,7 @@ Java_java_io_File_delete(JNIEnv* e, jclass, jstring path) int r; if (chars) { #ifdef PLATFORM_WINDOWS - if (GetFileAttributes(chars) == FILE_ATTRIBUTE_DIRECTORY) { + if (GetFileAttributes(chars) & FILE_ATTRIBUTE_DIRECTORY) { r = !RemoveDirectory(chars); } else { r = REMOVE(chars);