[Ttssh2-commit] [7599] 不要な_WIN32_WINNTのチェックを削除

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 4月 19日 (金) 23:18:09 JST


Revision: 7599
          https://osdn.net/projects/ttssh2/scm/svn/commits/7599
Author:   zmatsuo
Date:     2019-04-19 23:18:09 +0900 (Fri, 19 Apr 2019)
Log Message:
-----------
不要な_WIN32_WINNTのチェックを削除

Modified Paths:
--------------
    trunk/teraterm/common/ttlib.c

-------------- next part --------------
Modified: trunk/teraterm/common/ttlib.c
===================================================================
--- trunk/teraterm/common/ttlib.c	2019-04-18 10:37:35 UTC (rev 7598)
+++ trunk/teraterm/common/ttlib.c	2019-04-19 14:18:09 UTC (rev 7599)
@@ -1826,8 +1826,6 @@
  */
 void GetDesktopRect(HWND hWnd, RECT *rect)
 {
-#if _WIN32_WINNT >= 0x0500
-	// Windows 2000 \x88ȏ\xE3
 	if (HasMultiMonitorSupport()) {
 		// \x83}\x83\x8B\x83`\x83\x82\x83j\x83^\x82\xAA\x83T\x83|\x81[\x83g\x82\xB3\x82\xEA\x82Ă\xA2\x82\xE9\x8Fꍇ
 		MONITORINFO monitorInfo;
@@ -1835,9 +1833,7 @@
 		monitorInfo.cbSize = sizeof(MONITORINFO);
 		GetMonitorInfo(hMonitor, &monitorInfo);
 		*rect = monitorInfo.rcWork;
-	} else
-#endif
-	{
+	} else {
 		// \x83}\x83\x8B\x83`\x83\x82\x83j\x83^\x82\xAA\x83T\x83|\x81[\x83g\x82\xB3\x82\xEA\x82Ă\xA2\x82Ȃ\xA2\x8Fꍇ
 		SystemParametersInfo(SPI_GETWORKAREA, 0, rect, 0);
 	}


Ttssh2-commit メーリングリストの案内
Back to archive index