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);