comparison src/os_win32.c @ 27523:4c7bb6fd383f v8.2.4289

patch 8.2.4289: warnings reported by MSVC Commit: https://github.com/vim/vim/commit/5411910c77cba85212963a2fb71d8c71f8a5d203 Author: K.Takata <kentkt@csc.jp> Date: Thu Feb 3 13:33:03 2022 +0000 patch 8.2.4289: warnings reported by MSVC Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes https://github.com/vim/vim/issues/9689)
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Feb 2022 14:45:03 +0100
parents 3ad379c0ab28
children 4f1c67a5f446
comparison
equal deleted inserted replaced
27522:19898d468c67 27523:4c7bb6fd383f
450 static DWORD 450 static DWORD
451 wait_for_single_object( 451 wait_for_single_object(
452 HANDLE hHandle, 452 HANDLE hHandle,
453 DWORD dwMilliseconds) 453 DWORD dwMilliseconds)
454 { 454 {
455 if (read_console_input(NULL, NULL, -2, NULL)) 455 if (read_console_input(NULL, NULL, (DWORD)-2, NULL))
456 return WAIT_OBJECT_0; 456 return WAIT_OBJECT_0;
457 return WaitForSingleObject(hHandle, dwMilliseconds); 457 return WaitForSingleObject(hHandle, dwMilliseconds);
458 } 458 }
459 # endif 459 # endif
460 #endif 460 #endif
722 return 0; 722 return 0;
723 } 723 }
724 for (i = 0; libintl_entry[i].name != NULL 724 for (i = 0; libintl_entry[i].name != NULL
725 && libintl_entry[i].ptr != NULL; ++i) 725 && libintl_entry[i].ptr != NULL; ++i)
726 { 726 {
727 if ((*libintl_entry[i].ptr = (FARPROC)GetProcAddress(hLibintlDLL, 727 if ((*libintl_entry[i].ptr = GetProcAddress(hLibintlDLL,
728 libintl_entry[i].name)) == NULL) 728 libintl_entry[i].name)) == NULL)
729 { 729 {
730 dyn_libintl_end(); 730 dyn_libintl_end();
731 if (p_verbose > 0) 731 if (p_verbose > 0)
732 { 732 {