From 6f098dcb4b7d71c2b6f7ed12a6bfbadd93c04c04 Mon Sep 17 00:00:00 2001 From: berryplus Date: Tue, 20 Aug 2019 22:29:21 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E5=88=97=E3=83=AA=E3=83=86?= =?UTF-8?q?=E3=83=A9=E3=83=AB=E3=82=92=E6=A0=BC=E7=B4=8D=E3=81=99=E3=82=8B?= =?UTF-8?q?=E5=9E=8B=E3=81=AE=E8=AA=A4=E3=82=8A=E3=82=92=E8=A8=82=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LPWSTRをLPCWSTRに訂正 文字列リテラルはconst wchar_t[n]型なので、 LPWSTR型変数に代入することはできない。 --- sakura_core/cmd/CViewCommander_File.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sakura_core/cmd/CViewCommander_File.cpp b/sakura_core/cmd/CViewCommander_File.cpp index c28f5038c7..5db66fcede 100644 --- a/sakura_core/cmd/CViewCommander_File.cpp +++ b/sakura_core/cmd/CViewCommander_File.cpp @@ -589,7 +589,7 @@ void CViewCommander::Command_OPEN_COMMAND_PROMPT(BOOL isAdmin) return; } - LPWSTR pVerb = L"open"; + LPCWSTR pVerb = L"open"; if (isAdmin) { pVerb = L"runas"; @@ -633,7 +633,7 @@ void CViewCommander::Command_OPEN_POWERSHELL(BOOL isAdmin) cmdExeParam.AppendStringF(L"-NoExit -Command \"Set-Location -Path '%s'\"", strFolder.c_str()); LPCWSTR pszcmdExeParam = cmdExeParam.GetStringPtr(); - LPWSTR pVerb = L"open"; + LPCWSTR pVerb = L"open"; if (isAdmin) { pVerb = L"runas";