diff options
author | K.Takata <kentkt@csc.jp> | 2022-02-03 13:33:03 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-03 13:33:03 +0000 |
commit | 5411910c77cba85212963a2fb71d8c71f8a5d203 (patch) | |
tree | 02b93fc9c88ba737b0d94785790effa062de465b /src/os_win32.c | |
parent | 6e1d31e9e3ca42cb883abca198f011dc6f4ceb14 (diff) |
patch 8.2.4289: warnings reported by MSVCv8.2.4289
Problem: Warnings reported by MSVC.
Solution: Rename variables and other fixes. (Ken Takata, closes #9689)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index 18b9e59792..d2d2fe7a30 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -452,7 +452,7 @@ wait_for_single_object( HANDLE hHandle, DWORD dwMilliseconds) { - if (read_console_input(NULL, NULL, -2, NULL)) + if (read_console_input(NULL, NULL, (DWORD)-2, NULL)) return WAIT_OBJECT_0; return WaitForSingleObject(hHandle, dwMilliseconds); } @@ -724,7 +724,7 @@ dyn_libintl_init(void) for (i = 0; libintl_entry[i].name != NULL && libintl_entry[i].ptr != NULL; ++i) { - if ((*libintl_entry[i].ptr = (FARPROC)GetProcAddress(hLibintlDLL, + if ((*libintl_entry[i].ptr = GetProcAddress(hLibintlDLL, libintl_entry[i].name)) == NULL) { dyn_libintl_end(); |