From 3446ed0fcef3bb0d01792f98263c4dd55847687d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 5 Sep 2009 15:35:00 -0600 Subject: [PATCH] fix MSVC build regression in java-io.cpp --- 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 f9a7ce5c3a..22a480cc77 100644 --- a/classpath/java-io.cpp +++ b/classpath/java-io.cpp @@ -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;