mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
Fixed ssh_get_user_home_dir on Windows.
This commit is contained in:
@@ -75,8 +75,8 @@ char *ssh_get_user_home_dir(void) {
|
|||||||
char szPath = NULL;
|
char szPath = NULL;
|
||||||
|
|
||||||
if (SHGetSpecialFolderPathA(NULL, tmp, CSIDL_PROFILE, TRUE)) {
|
if (SHGetSpecialFolderPathA(NULL, tmp, CSIDL_PROFILE, TRUE)) {
|
||||||
szPath = malloc(strlen(szPath) + 1);
|
szPath = malloc(strlen(tmp) + 1);
|
||||||
if (home == NULL) {
|
if (szPath == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user