From 3434f5f76259bbd51372ef9906192c6ff78fb4c7 Mon Sep 17 00:00:00 2001 From: berryzplus Date: Wed, 14 Oct 2020 12:40:12 +0900 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E6=95=B0=E3=81=AE=E6=96=87=E5=AD=97?= =?UTF-8?q?=E5=88=97=E3=82=B3=E3=83=94=E3=83=BC=E3=81=AB=E6=A4=9C=E5=87=BA?= =?UTF-8?q?=E3=81=97=E3=81=9FnArgLen=E3=82=92=E4=BD=BF=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura_core/_main/CCommandLine.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sakura_core/_main/CCommandLine.cpp b/sakura_core/_main/CCommandLine.cpp index f0eb557375..8cadd705e4 100644 --- a/sakura_core/_main/CCommandLine.cpp +++ b/sakura_core/_main/CCommandLine.cpp @@ -419,22 +419,22 @@ void CCommandLine::ParseCommandLine( LPCWSTR pszCmdLineSrc, bool bResponse ) break; case CMDLINEOPT_GKEY: // GKEY // 前後の""を取り除く - m_gi.cmGrepKey.SetString( arg, lstrlen( arg ) ); + m_gi.cmGrepKey.SetString( arg, nArgLen ); m_gi.cmGrepKey.Replace( L"\"\"", L"\"" ); break; case CMDLINEOPT_GREPR: // GREPR // 前後の""を取り除く - m_gi.cmGrepRep.SetString( arg, lstrlen( arg ) ); + m_gi.cmGrepRep.SetString( arg, nArgLen ); m_gi.cmGrepRep.Replace( L"\"\"", L"\"" ); m_gi.bGrepReplace = true; break; case CMDLINEOPT_GFILE: // GFILE // 前後の""を取り除く - m_gi.cmGrepFile.SetString( arg, lstrlen( arg ) ); + m_gi.cmGrepFile.SetString( arg, nArgLen ); m_gi.cmGrepFile.Replace( L"\"\"", L"\"" ); break; case CMDLINEOPT_GFOLDER: // GFOLDER - m_gi.cmGrepFolder.SetString( arg, lstrlen( arg ) ); + m_gi.cmGrepFolder.SetString( arg, nArgLen ); m_gi.cmGrepFolder.Replace( L"\"\"", L"\"" ); break; case CMDLINEOPT_GOPT: // GOPT @@ -507,14 +507,14 @@ void CCommandLine::ParseCommandLine( LPCWSTR pszCmdLineSrc, bool bResponse ) bParseOptDisabled = true; break; case CMDLINEOPT_M: // 2009.06.14 syat 追加 - m_cmMacro.SetString( arg ); + m_cmMacro.SetString( arg, nArgLen ); m_cmMacro.Replace( L"\"\"", L"\"" ); break; case CMDLINEOPT_MTYPE: // 2009.06.14 syat 追加 - m_cmMacroType.SetString( arg ); + m_cmMacroType.SetString( arg, nArgLen ); break; case CMDLINEOPT_PROF: // 2013.12.20 Moca 追加 - m_cmProfile.SetString( arg ); + m_cmProfile.SetString( arg, nArgLen ); m_bSetProfile = true; break; case CMDLINEOPT_PROFMGR: