Browse Source

Fixes for $HOME in Windows

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
6e5598412b
  1. 4
      io_win32.c

4
io_win32.c

@ -25,6 +25,7 @@
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <Shlobj.h>
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;
}

Loading…
Cancel
Save