Navigation Menu

Skip to content

Commit

Permalink
Fixed wrong realpath() result for unexistent files on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jan 23, 2007
1 parent 14fb4af commit dfa95b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TSRM/tsrm_virtual_cwd.c
Expand Up @@ -648,6 +648,11 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
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
Expand Down

0 comments on commit dfa95b7

Please sign in to comment.