GUACAMOLE-861: Fixes WINDOWS_TIME calculation

This fixes the UNIX time to FILETIME conversion in WINDOWS_TIME macro,
according to MSDN (addition instead of subtraction).
This commit is contained in:
unknown 2019-08-04 23:40:53 +03:00
parent 289ceac222
commit 4cc9c2d3e1

View File

@ -188,7 +188,7 @@
* Converts a UNIX timestamp (seconds since Jan 1, 1970 UTC) to Windows
* timestamp (100 nanosecond intervals since Jan 1, 1601 UTC).
*/
#define WINDOWS_TIME(t) ((t - ((uint64_t) 11644473600)) * 10000000)
#define WINDOWS_TIME(t) ((t + ((uint64_t) 11644473600)) * 10000000)
/**
* An arbitrary file on the virtual filesystem of the Guacamole drive.