X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/4a693cfc5c3ee0e639bbee0215345e921715ab04..ff160c277c526d7cbadf3952cbe8f2d58452f0ec:/windows/winucs.c diff --git a/windows/winucs.c b/windows/winucs.c index 9abd83c7..6886a8f0 100644 --- a/windows/winucs.c +++ b/windows/winucs.c @@ -1204,7 +1204,7 @@ void get_unitab(int codepage, wchar_t * unitab, int ftype) } } -int wc_to_mb(int codepage, int flags, wchar_t *wcstr, int wclen, +int wc_to_mb(int codepage, int flags, const wchar_t *wcstr, int wclen, char *mbstr, int mblen, char *defchr, int *defused, struct unicode_data *ucsdata) { @@ -1242,7 +1242,7 @@ int wc_to_mb(int codepage, int flags, wchar_t *wcstr, int wclen, mbstr, mblen, defchr, defused); } -int mb_to_wc(int codepage, int flags, char *mbstr, int mblen, +int mb_to_wc(int codepage, int flags, const char *mbstr, int mblen, wchar_t *wcstr, int wclen) { return MultiByteToWideChar(codepage, flags, mbstr, mblen, wcstr, wclen);