comparison src/os_mswin.c @ 29096:d2ef7d649fcb v8.2.5069

patch 8.2.5069: various warnings from clang on MS-Windows Commit: https://github.com/vim/vim/commit/ebb01bdb273216607f60faddf791a1b378cccfa8 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Jun 8 15:14:09 2022 +0100 patch 8.2.5069: various warnings from clang on MS-Windows Problem: Various warnings from clang on MS-Windows. Solution: Fix the code to avoid the warnings. (Yegappan Lakshmanan, closes #10538)
author Bram Moolenaar <Bram@vim.org>
date Wed, 08 Jun 2022 16:15:03 +0200
parents c0403cd5ca06
children d8a962d7b008
comparison
equal deleted inserted replaced
29095:f12e06b1dd95 29096:d2ef7d649fcb
558 end = p + rb->ReparseDataLength / sizeof(WCHAR); 558 end = p + rb->ReparseDataLength / sizeof(WCHAR);
559 for (idx = 0; p < end 559 for (idx = 0; p < end
560 && idx < (int)rb->AppExecLinkReparseBuffer.StringCount 560 && idx < (int)rb->AppExecLinkReparseBuffer.StringCount
561 && idx != 2; ) 561 && idx != 2; )
562 { 562 {
563 if ((*p++ == L'\0')) 563 if (*p++ == L'\0')
564 ++idx; 564 ++idx;
565 } 565 }
566 566
567 return utf16_to_enc(p, NULL); 567 return utf16_to_enc(p, NULL);
568 } 568 }