mirror of
https://github.com/corda/corda.git
synced 2025-06-20 08:03:53 +00:00
fix MSVC build regression in java-io.cpp
This commit is contained in:
@ -414,7 +414,7 @@ Java_java_io_File_openDir(JNIEnv* e, jclass, jstring path)
|
|||||||
e->ReleaseStringUTFChars(path, chars);
|
e->ReleaseStringUTFChars(path, chars);
|
||||||
|
|
||||||
Directory* d = new (malloc(sizeof(Directory))) Directory;
|
Directory* d = new (malloc(sizeof(Directory))) Directory;
|
||||||
d->handle = FindFirstFile(buffer, &(d->data));
|
d->handle = FindFirstFile(RUNTIME_ARRAY_BODY(buffer), &(d->data));
|
||||||
if (d->handle == INVALID_HANDLE_VALUE) {
|
if (d->handle == INVALID_HANDLE_VALUE) {
|
||||||
d->dispose();
|
d->dispose();
|
||||||
d = 0;
|
d = 0;
|
||||||
|
Reference in New Issue
Block a user