aboutsummaryrefslogtreecommitdiff
path: root/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c')
-rw-r--r--src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c b/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c
index 45a364627..d5195c4f7 100644
--- a/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c
+++ b/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c
@@ -560,9 +560,9 @@ Java_sun_nio_fs_WindowsNativeDispatcher_SetFileTime(JNIEnv* env, jclass this,
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());
}