Fix NUL filename on windows

This commit is contained in:
Jens Steube
2020-03-09 20:12:36 +01:00
parent 3e4d110fd2
commit 8c3808bad5
+1 -1
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