|
@ -87,7 +87,7 @@ bool ethash_file_size(FILE* f, size_t* ret_size) |
|
|
|
|
|
|
|
|
bool ethash_get_default_dirname(char* strbuf, size_t buffsize) |
|
|
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'; |
|
|
strbuf[0] = '\0'; |
|
|
if (!SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_PROFILE, NULL, 0, (WCHAR*)strbuf))) { |
|
|
if (!SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_PROFILE, NULL, 0, (WCHAR*)strbuf))) { |
|
|
return false; |
|
|
return false; |
|
|