Commit 650ccf59 authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

msvcp90: Initialize state in mb_to_wc.

parent c152c540
...@@ -4397,7 +4397,7 @@ num_get* num_get_short_use_facet(const locale *loc) ...@@ -4397,7 +4397,7 @@ num_get* num_get_short_use_facet(const locale *loc)
static inline wchar_t mb_to_wc(char ch, const _Cvtvec *cvt) static inline wchar_t mb_to_wc(char ch, const _Cvtvec *cvt)
{ {
int state; int state = 0;
wchar_t ret; wchar_t ret;
return _Mbrtowc(&ret, &ch, 1, &state, cvt) == 1 ? ret : 0; return _Mbrtowc(&ret, &ch, 1, &state, cvt) == 1 ? ret : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment