Mercurial > vim
comparison src/winclip.c @ 26771:fc859aea8cec v8.2.3914
patch 8.2.3914: various spelling mistakes in comments
Commit: https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Mon Dec 27 17:21:41 2021 +0000
patch 8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pell?, closes https://github.com/vim/vim/issues/9416)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 18:30:05 +0100 |
parents | 599b29b6e540 |
children | a52697bcffa6 |
comparison
equal
deleted
inserted
replaced
26770:15ff3f2e0d58 | 26771:fc859aea8cec |
---|---|
145 MultiByteToWideChar_alloc(UINT cp, DWORD flags, | 145 MultiByteToWideChar_alloc(UINT cp, DWORD flags, |
146 LPCSTR in, int inlen, | 146 LPCSTR in, int inlen, |
147 LPWSTR *out, int *outlen) | 147 LPWSTR *out, int *outlen) |
148 { | 148 { |
149 *outlen = MultiByteToWideChar(cp, flags, in, inlen, 0, 0); | 149 *outlen = MultiByteToWideChar(cp, flags, in, inlen, 0, 0); |
150 // Add one one word to avoid a zero-length alloc(). | 150 // Add one word to avoid a zero-length alloc(). |
151 *out = ALLOC_MULT(WCHAR, *outlen + 1); | 151 *out = ALLOC_MULT(WCHAR, *outlen + 1); |
152 if (*out != NULL) | 152 if (*out != NULL) |
153 { | 153 { |
154 MultiByteToWideChar(cp, flags, in, inlen, *out, *outlen); | 154 MultiByteToWideChar(cp, flags, in, inlen, *out, *outlen); |
155 (*out)[*outlen] = 0; | 155 (*out)[*outlen] = 0; |
165 LPCWSTR in, int inlen, | 165 LPCWSTR in, int inlen, |
166 LPSTR *out, int *outlen, | 166 LPSTR *out, int *outlen, |
167 LPCSTR def, LPBOOL useddef) | 167 LPCSTR def, LPBOOL useddef) |
168 { | 168 { |
169 *outlen = WideCharToMultiByte(cp, flags, in, inlen, NULL, 0, def, useddef); | 169 *outlen = WideCharToMultiByte(cp, flags, in, inlen, NULL, 0, def, useddef); |
170 // Add one one byte to avoid a zero-length alloc(). | 170 // Add one byte to avoid a zero-length alloc(). |
171 *out = alloc(*outlen + 1); | 171 *out = alloc(*outlen + 1); |
172 if (*out != NULL) | 172 if (*out != NULL) |
173 { | 173 { |
174 WideCharToMultiByte(cp, flags, in, inlen, *out, *outlen, def, useddef); | 174 WideCharToMultiByte(cp, flags, in, inlen, *out, *outlen, def, useddef); |
175 (*out)[*outlen] = 0; | 175 (*out)[*outlen] = 0; |