1
0
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:
Andreas Schneider
2009-10-15 16:37:07 +02:00
parent cbf012c337
commit e736b1a40e

View File

@@ -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;
} }