diff --git a/io_win32.c b/io_win32.c index 84a249883..15da9fa58 100644 --- a/io_win32.c +++ b/io_win32.c @@ -25,6 +25,7 @@ #include #include #include +#include FILE* ethash_fopen(char const* file_name, char const* mode) { @@ -90,9 +91,6 @@ bool ethash_get_default_dirname(char* strbuf, size_t buffsize) if (!SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_PROFILE, NULL, 0, (WCHAR*)strbuf))) { return false; } - if (!ethash_strncat(strbuf, buffsize, home_dir, len)) { - return false; - } if (!ethash_strncat(strbuf, buffsize, "\\", 1)) { return false; }