From: Paul Gofman pgofman@codeweavers.com
--- dlls/msvcp90/locale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcp90/locale.c b/dlls/msvcp90/locale.c index 66f7dae1400..41daeaebe08 100644 --- a/dlls/msvcp90/locale.c +++ b/dlls/msvcp90/locale.c @@ -3876,7 +3876,7 @@ int __thiscall codecvt_wchar_do_out(const codecvt_wchar *this, _Mbstatet *state, case -1: return CODECVT_error; default: - if(size > from_end-*from_next) { + if(size > to_end - *to_next) { *state = old_state; return CODECVT_partial; }