--- a/jdk/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c Fri Jun 26 18:39:45 2009 -0700
+++ b/jdk/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c Sat Jun 27 21:46:53 2009 +0100
@@ -560,9 +560,9 @@
HANDLE h = (HANDLE)jlong_to_ptr(handle);
if (SetFileTime(h,
- (createTime == (jlong)0) ? NULL : (CONST FILETIME *)&createTime,
- (lastAccessTime == (jlong)0) ? NULL : (CONST FILETIME *)&lastAccessTime,
- (lastWriteTime == (jlong)0) ? NULL : (CONST FILETIME *)&lastWriteTime) == 0)
+ (createTime == (jlong)-1) ? NULL : (CONST FILETIME *)&createTime,
+ (lastAccessTime == (jlong)-1) ? NULL : (CONST FILETIME *)&lastAccessTime,
+ (lastWriteTime == (jlong)-1) ? NULL : (CONST FILETIME *)&lastWriteTime) == 0)
{
throwWindowsException(env, GetLastError());
}