-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P5
-
Affects Version/s: 9
-
Component/s: core-libs
-
b09
-
windows
-
Not verified
In src/java.base/windows/native/libjava/WinNTFileSystem_md.c the FILETIME retrieved by GetFileTime() should be converted to a ULARGE_INTEGER, and the ULARGE_INTEGER derived from the tiime parameter of Java_java_io_WinNTFileSystem_setLastModifiedTime() should be converted to a ULARGE_INTEGER before being converted to the FILETIME passed to SetFileTime().
In particular, in the FILETIME structure documentation it is stated that "[...] you should copy the low- and high-order parts of the file time to a ULARGE_INTEGER structure [...]"
In particular, in the FILETIME structure documentation it is stated that "[...] you should copy the low- and high-order parts of the file time to a ULARGE_INTEGER structure [...]"