From 981abc6f4a2d5671512c679dbe3c76a6a1f90daa Mon Sep 17 00:00:00 2001 From: Tadas Date: Thu, 24 Apr 2025 01:36:28 +0100 Subject: [PATCH] Don't request write permissions for RemotePowerShellConfig.txt --- .../nativemsh/pwrshcommon/ConfigFileReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powershell-native/nativemsh/pwrshcommon/ConfigFileReader.cpp b/src/powershell-native/nativemsh/pwrshcommon/ConfigFileReader.cpp index 5af2b6b..c5a8b1c 100644 --- a/src/powershell-native/nativemsh/pwrshcommon/ConfigFileReader.cpp +++ b/src/powershell-native/nativemsh/pwrshcommon/ConfigFileReader.cpp @@ -24,7 +24,7 @@ namespace NativeMsh { std::wstring absolutePathToConfigFile(pathToConfig); absolutePathToConfigFile += powerShellConfigFileName; - std::wfstream psConfigFile(absolutePathToConfigFile.c_str()); + std::wifstream psConfigFile(absolutePathToConfigFile.c_str()); if (!psConfigFile.is_open()) {