fix MSVC build regression in java-io.cpp

This commit is contained in:
Joel Dice 2009-09-05 15:35:00 -06:00
parent 8956b98604
commit 3446ed0fce

View File

@ -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;