From efc1521590ae61cac0cac6546e4f4cb14347fbf5 Mon Sep 17 00:00:00 2001 From: ANIKITI Date: Sun, 7 Apr 2013 16:29:04 +0900 Subject: [PATCH] =?utf8?q?C#=20=E3=81=B8=E3=81=AE=E6=9B=B8=E3=81=8D?= =?utf8?q?=E6=8F=9B=E3=81=88=E6=99=82=E3=81=AE=E3=83=9F=E3=82=B9=E3=82=92?= =?utf8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- OpenTween/ApplicationEvents.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenTween/ApplicationEvents.cs b/OpenTween/ApplicationEvents.cs index 4e10e567..11cbd3e3 100644 --- a/OpenTween/ApplicationEvents.cs +++ b/OpenTween/ApplicationEvents.cs @@ -71,7 +71,7 @@ namespace OpenTween { // 実行中の同じアプリケーションのウィンドウ・ハンドルの取得 var prevProcess = Win32Api.GetPreviousProcess(); - if (prevProcess != null && prevProcess.MainWindowHandle == IntPtr.Zero) + if (prevProcess != null && prevProcess.MainWindowHandle != IntPtr.Zero) { // 起動中のアプリケーションを最前面に表示 Win32Api.WakeupWindow(prevProcess.MainWindowHandle); -- 2.11.0