Browse Source

Fixed wrong realpath() result for unexistent files on win32

experimental/5.2-WITH_DRCP
Dmitry Stogov 20 years ago
parent
commit
dfa95b718f
  1. 5
      TSRM/tsrm_virtual_cwd.c

5
TSRM/tsrm_virtual_cwd.c

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

Loading…
Cancel
Save