1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 01:50:10 +00:00

Fix module_filename() on Cygwin

This commit is contained in:
jsteube 2019-02-27 21:21:08 +01:00
parent 87c24200da
commit 5c3ad11424

View File

@ -66,7 +66,7 @@ int ascii_digest (const hashconfig_t *hashconfig, const hashes_t *hashes, const
int module_filename (const folder_config_t *folder_config, const int hash_mode, char *out_buf, const size_t out_size)
{
// native compiled
#if defined (_WIN)
#if defined (_WIN) || defined (__CYGWIN__)
return snprintf (out_buf, out_size, "%s/modules/module_%05d.dll", folder_config->shared_dir, hash_mode);
#else
return snprintf (out_buf, out_size, "%s/modules/module_%05d.so", folder_config->shared_dir, hash_mode);