From 0746f0ca5b0dbc566cb3bc11b228c7e411f09a88 Mon Sep 17 00:00:00 2001 From: berryzplus Date: Tue, 2 Mar 2021 01:39:19 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=8C=E7=95=B0?= =?UTF-8?q?=E5=B8=B8=E7=B5=82=E4=BA=86=E3=81=99=E3=82=8B=E5=AF=BE=E7=AD=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura_core/_main/CProcessFactory.cpp | 2 +- tests/unittests/test-winmain.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sakura_core/_main/CProcessFactory.cpp b/sakura_core/_main/CProcessFactory.cpp index e9e881917a..70afae3ffc 100644 --- a/sakura_core/_main/CProcessFactory.cpp +++ b/sakura_core/_main/CProcessFactory.cpp @@ -258,7 +258,7 @@ bool CProcessFactory::WaitForInitializedControlProcess() return false; } DWORD dwRet; - dwRet = ::WaitForSingleObject( hEvent, 10000 ); // 最大10秒間待つ + dwRet = ::WaitForSingleObject( hEvent, 30000 ); if( WAIT_TIMEOUT == dwRet ){ // コントロールプロセスの初期化が終了しない ::CloseHandle( hEvent ); TopErrorMessage( NULL, L"エディタまたはシステムがビジー状態です。\nしばらく待って開きなおしてください。" ); diff --git a/tests/unittests/test-winmain.cpp b/tests/unittests/test-winmain.cpp index 24a4488781..b4827f6354 100644 --- a/tests/unittests/test-winmain.cpp +++ b/tests/unittests/test-winmain.cpp @@ -151,7 +151,7 @@ void CControlProcess_WaitForInitialized(std::wstring_view profileName) handleHolder eventHolder( hEvent ); // 初期化完了イベントを待つ - DWORD dwRet = ::WaitForSingleObject( hEvent, 10000 ); + DWORD dwRet = ::WaitForSingleObject( hEvent, 30000 ); if( WAIT_TIMEOUT == dwRet ){ throw std::runtime_error( "waitEvent is timeout." ); }