diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os_mswin.c | 17 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 16 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 8d46e53cf1..8dafaa35b1 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -1043,11 +1043,6 @@ extern HWND g_hWnd; /* This is in os_win32.c. */ static void GetConsoleHwnd(void) { -# define MY_BUFSIZE 1024 // Buffer size for console window titles. - - char pszNewWindowTitle[MY_BUFSIZE]; // Contains fabricated WindowTitle. - char pszOldWindowTitle[MY_BUFSIZE]; // Contains original WindowTitle. - /* Skip if it's already set. */ if (s_hwnd != 0) return; @@ -1061,17 +1056,7 @@ GetConsoleHwnd(void) } # endif - GetConsoleTitle(pszOldWindowTitle, MY_BUFSIZE); - - wsprintf(pszNewWindowTitle, "%s/%d/%d", - pszOldWindowTitle, - GetTickCount(), - GetCurrentProcessId()); - SetConsoleTitle(pszNewWindowTitle); - Sleep(40); - s_hwnd = FindWindow(NULL, pszNewWindowTitle); - - SetConsoleTitle(pszOldWindowTitle); + s_hwnd = GetConsoleWindow(); } /* diff --git a/src/version.c b/src/version.c index f28d69dc66..3a71b93929 100644 --- a/src/version.c +++ b/src/version.c @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 906, +/**/ 905, /**/ 904, |