From 5411910c77cba85212963a2fb71d8c71f8a5d203 Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Thu, 3 Feb 2022 13:33:03 +0000 Subject: patch 8.2.4289: warnings reported by MSVC Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes #9689) --- src/filepath.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/filepath.c') diff --git a/src/filepath.c b/src/filepath.c index 65ea2bc6ea..4abf8f498d 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -372,12 +372,12 @@ repeat: { if (GetLongPathNameW(wfname, buf, _MAX_PATH)) { - char_u *p = utf16_to_enc(buf, NULL); + char_u *q = utf16_to_enc(buf, NULL); - if (p != NULL) + if (q != NULL) { vim_free(*bufp); // free any allocated file name - *bufp = *fnamep = p; + *bufp = *fnamep = q; } } vim_free(wfname); -- cgit v1.2.3