mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
fix MSVC build regression in java-io.cpp
This commit is contained in:
parent
8956b98604
commit
3446ed0fce
@ -414,7 +414,7 @@ Java_java_io_File_openDir(JNIEnv* e, jclass, jstring path)
|
||||
e->ReleaseStringUTFChars(path, chars);
|
||||
|
||||
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) {
|
||||
d->dispose();
|
||||
d = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user