# HG changeset patch # User Bram Moolenaar # Date 1553720407 -3600 # Node ID 82cbb08ae0f9127d40a0ee7af75ef72580662d84 # Parent a0407a92cab90c8b1786957dd49a307e6f9ed747 patch 8.1.1059: MS-Windows: PlatformId() is called unnecessarily commit https://github.com/vim/vim/commit/90d0cf69aab7c1d6f5212d47ca1a5fe1a213bbc8 Author: Bram Moolenaar Date: Wed Mar 27 21:49:14 2019 +0100 patch 8.1.1059: MS-Windows: PlatformId() is called unnecessarily Problem: MS-Windows: PlatformId() is called unnecessarily. Solution: Remove calls to PlatformId(). (Ken Takata, closes https://github.com/vim/vim/issues/4170) diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -6796,7 +6796,6 @@ mch_total_mem(int special UNUSED) { MEMORYSTATUSEX ms; - PlatformId(); /* Need to use GlobalMemoryStatusEx() when there is more memory than * what fits in 32 bits. But it's not always available. */ ms.dwLength = sizeof(MEMORYSTATUSEX); @@ -6982,8 +6981,6 @@ mch_rename( char * default_shell(void) { - PlatformId(); - return "cmd.exe"; } @@ -7327,7 +7324,6 @@ copy_infostreams(char_u *from, char_u *t mch_copy_file_attribute(char_u *from, char_u *to) { /* File streams only work on Windows NT and later. */ - PlatformId(); copy_infostreams(from, to); return 0; } @@ -7358,8 +7354,6 @@ myresetstkoflw(void) DWORD nPageSize; DWORD dummy; - PlatformId(); - /* We need to know the system page size. */ GetSystemInfo(&si); nPageSize = si.dwPageSize; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -776,6 +776,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1059, +/**/ 1058, /**/ 1057,