mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +00:00
utf16_to_utf8: align with libuv
- take a size parameter - return libuv error code - handle error in caller only (avoid redundant messages)53995a3825
4c945f4936
This commit is contained in:
@@ -1208,7 +1208,7 @@ char *os_resolve_shortcut(const char *fname)
|
||||
ZeroMemory(wsz, MAX_PATH * sizeof(wchar_t));
|
||||
hr = pslw->lpVtbl->GetPath(pslw, wsz, MAX_PATH, &ffdw, 0);
|
||||
if (hr == S_OK && wsz[0] != NUL) {
|
||||
const int conversion_result = utf16_to_utf8(wsz, &rfname);
|
||||
const int conversion_result = utf16_to_utf8(wsz, -1, &rfname);
|
||||
if (conversion_result != 0) {
|
||||
EMSG2("utf16_to_utf8 failed: %d", conversion_result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user