1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Fix NUL filename on windows

This commit is contained in:
Jens Steube 2020-03-09 20:12:36 +01:00
parent 3e4d110fd2
commit 8c3808bad5

View File

@ -374,7 +374,7 @@ static bool opencl_test_instruction (hashcat_ctx_t *hashcat_ctx, cl_context cont
#ifndef DEBUG
const int stderr_bak = dup (fd_stderr);
#ifdef _WIN
const int tmp = open ("NIL", O_WRONLY);
const int tmp = open ("NUL", O_WRONLY);
#else
const int tmp = open ("/dev/null", O_WRONLY);
#endif