mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 18:22:16 +00:00
Properly pass wchar *
type to giterr_set
This commit is contained in:
parent
ae5838f118
commit
86364af995
@ -174,7 +174,7 @@ GIT_INLINE(int) git_win32__file_attribute_to_stat(
|
|||||||
/* st_size gets the UTF-8 length of the target name, in bytes,
|
/* st_size gets the UTF-8 length of the target name, in bytes,
|
||||||
* not counting the NULL terminator */
|
* not counting the NULL terminator */
|
||||||
if ((st->st_size = git__utf16_to_8(NULL, 0, target)) < 0) {
|
if ((st->st_size = git__utf16_to_8(NULL, 0, target)) < 0) {
|
||||||
giterr_set(GITERR_OS, "Could not convert reparse point name for '%s'", path);
|
giterr_set(GITERR_OS, "Could not convert reparse point name for '%S'", path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user