diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index ff9bb8072..86d2534f7 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -9867,6 +9867,10 @@ char* get_windows_canonical_path(const char* input_path) { return NULL; } + /* If plain filename, just copy it. */ + if (!strchr(input_path, '\\') && !strchr(input_path, '/')) + return copy(input_path); + inputLenMB = (int)strlen(input_path); if (inputLenMB == 0) {