diff options
| -rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 36bce0b5e9..33285bab09 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/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 |
