1
1

Fixed ssh_get_user_home_dir on Windows.

Этот коммит содержится в:
Andreas Schneider 2009-10-15 16:37:07 +02:00
родитель cbf012c337
Коммит e736b1a40e

Просмотреть файл

@ -75,8 +75,8 @@ char *ssh_get_user_home_dir(void) {
char szPath = NULL;
if (SHGetSpecialFolderPathA(NULL, tmp, CSIDL_PROFILE, TRUE)) {
szPath = malloc(strlen(szPath) + 1);
if (home == NULL) {
szPath = malloc(strlen(tmp) + 1);
if (szPath == NULL) {
return NULL;
}