Fixed wrong realpath() result for unexistent files on win32

This commit is contained in:
Dmitry Stogov 2007-01-23 17:03:48 +00:00
parent 14fb4afd5c
commit dfa95b718f

View file

@ -648,6 +648,11 @@ no_realpath:
memcpy(&state->cwd[state->cwd_length], data.cFileName, length+1);
ptr_length = length;
FindClose(hFind);
} else if (use_realpath == CWD_REALPATH) {
free(free_path);
CWD_STATE_FREE(state);
*state = old_state;
return 1;
}
}
#endif