jdk/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c
changeset 3065 452aaa2899fc
parent 2071 5e6af6d106cb
child 3628 2768d95a0e7d
--- 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());
     }