From 081aecef559435657a5bd7b5f3dd09c72476a10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Wed, 25 Mar 2020 16:38:35 +0100 Subject: [PATCH] fix vmpath when invoked with a path to config file --- src/pc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pc.c b/src/pc.c index f778b7e23..018f2744d 100644 --- a/src/pc.c +++ b/src/pc.c @@ -440,9 +440,6 @@ usage: plat_dir_create(usr_path); } - /* Make sure we have a trailing backslash. */ - plat_path_slash(usr_path); - /* Grab the name of the configuration file. */ if (cfg == NULL) cfg = CONFIG_FILE; @@ -476,6 +473,9 @@ usage: wcscat(usr_path, cfg); } + /* Make sure we have a trailing backslash. */ + plat_path_slash(usr_path); + /* At this point, we can safely create the full path name. */ plat_append_filename(cfg_path, usr_path, p);