From: Tonu Naks <[email protected]>
gcc/ada/ChangeLog:
* adaint.c (__gnat_copy_attribs): Fix call to SetFileTime
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/adaint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index a63408370f7..a290a22a62b 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -3221,7 +3221,7 @@ __gnat_copy_attribs (char *from ATTRIBUTE_UNUSED, char
*to ATTRIBUTE_UNUSED,
return -1;
res = SetFileTime
- (hto, NULL, &info.ftCreationTime, &info.ftLastAccessTime);
+ (hto, &info.ftCreationTime, &info.ftLastAccessTime,
&info.ftLastWriteTime);
CloseHandle (hto);
--
2.53.0