mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Merge pull request #417 from ReadyTalk/repatch-windows-file-delete
repatch windows file delete
This commit is contained in:
commit
795604bbc4
@ -389,7 +389,7 @@ Java_java_io_File_delete(JNIEnv* e, jclass, jstring path)
|
|||||||
int r;
|
int r;
|
||||||
if (chars) {
|
if (chars) {
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
if (GetFileAttributes(chars) == FILE_ATTRIBUTE_DIRECTORY) {
|
if (GetFileAttributes(chars) & FILE_ATTRIBUTE_DIRECTORY) {
|
||||||
r = !RemoveDirectory(chars);
|
r = !RemoveDirectory(chars);
|
||||||
} else {
|
} else {
|
||||||
r = REMOVE(chars);
|
r = REMOVE(chars);
|
||||||
|
Loading…
Reference in New Issue
Block a user