From 14d9ec461bda003107358c97650c0d70c870b030 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 6 Mar 2018 11:06:46 +0000 Subject: [PATCH] Ensure there's a trailing path separator on upgrade command path --- renderdoccmd/renderdoccmd_win32.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderdoccmd/renderdoccmd_win32.cpp b/renderdoccmd/renderdoccmd_win32.cpp index 6248d90e0..77f3dbde0 100644 --- a/renderdoccmd/renderdoccmd_win32.cpp +++ b/renderdoccmd/renderdoccmd_win32.cpp @@ -241,6 +241,9 @@ struct UpgradeCommand : public Command { wstring wide_path = conv(parser.get("path")); + if(wide_path.back() != '\\' && wide_path.back() != '/') + wide_path += L'\\'; + // Wait for UI to exit Sleep(3000);