Browse Source

reverse ethash changes

cl-refactor
subtly 10 years ago
parent
commit
3bd7b5241c
  1. 2
      libethash/io_posix.c
  2. 2
      libethash/io_win32.c

2
libethash/io_posix.c

@ -89,7 +89,7 @@ bool ethash_get_default_dirname(char* strbuf, size_t buffsize)
static const char dir_suffix[] = ".ethash/";
strbuf[0] = '\0';
char* home_dir = getenv("HOME");
size_t len = strlen(home_dir);
if (!ethash_strncat(strbuf, buffsize, home_dir, len)) {
return false;

2
libethash/io_win32.c

@ -87,7 +87,7 @@ bool ethash_file_size(FILE* f, size_t* ret_size)
bool ethash_get_default_dirname(char* strbuf, size_t buffsize)
{
static const char dir_suffix[] = "AppData\\Ethash\\";
static const char dir_suffix[] = "Appdata\\Ethash\\";
strbuf[0] = '\0';
if (!SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_PROFILE, NULL, 0, (WCHAR*)strbuf))) {
return false;

Loading…
Cancel
Save