v1.4.4 breaks Windows 2000/XP support
Brought to you by:
aleksey14
The readme file for RHash version 1.4.4 states the Win32 version requires Win XP/2K/Vista/7/8/10. However, in the file win_utils.c, the function get_long_path_if_needed() calls wcscpy_s() with the following line:
wcscpy_s(result + UNC_PREFIX_SIZE + size, spaces_count + 1, wpath + index);
wcscpy_s() is not present in the MSVCRT library shipped with the earlier operating systems (2000/XP) that the executable gets linked to. This causes a runtime error when attempting to run RHash on those systems.
Fixed by commit a5f558af1b5e01922d5b9e2d2f56af5f2f2f07ff.