From 24f9290cd6bacac5575084760225575284a08dc1 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Fri, 15 Jun 2012 11:09:15 +0200 Subject: [PATCH] msvcp90: Added basic_ios::widen implementation. --- dlls/msvcp90/ios.c | 8 ++++---- dlls/msvcp90/msvcp90.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/msvcp90/ios.c b/dlls/msvcp90/ios.c index c69b5c50271..2b43123e927 100644 --- a/dlls/msvcp90/ios.c +++ b/dlls/msvcp90/ios.c @@ -3259,8 +3259,8 @@ basic_ostream_char* __thiscall basic_ios_char_tie_get(const basic_ios_char *this DEFINE_THISCALL_WRAPPER(basic_ios_char_widen, 8) char __thiscall basic_ios_char_widen(basic_ios_char *this, char ch) { - FIXME("(%p %c) stub\n", this, ch); - return 0; + TRACE("(%p %c)\n", this, ch); + return ctype_char_widen_ch(ctype_char_use_facet(this->strbuf->loc), ch); } @@ -3539,8 +3539,8 @@ basic_ostream_wchar* __thiscall basic_ios_wchar_tie_get(const basic_ios_wchar *t DEFINE_THISCALL_WRAPPER(basic_ios_wchar_widen, 8) wchar_t __thiscall basic_ios_wchar_widen(basic_ios_wchar *this, char ch) { - FIXME("(%p %c)\n", this, ch); - return 0; + TRACE("(%p %c)\n", this, ch); + return ctype_wchar_widen_ch(ctype_wchar_use_facet(this->strbuf->loc), ch); } /* Caution: basic_ostream uses virtual inheritance. diff --git a/dlls/msvcp90/msvcp90.h b/dlls/msvcp90/msvcp90.h index 8550ad8efaa..36c40341928 100644 --- a/dlls/msvcp90/msvcp90.h +++ b/dlls/msvcp90/msvcp90.h @@ -332,6 +332,7 @@ typedef struct { MSVCP_bool __thiscall ctype_char_is_ch(const ctype_char*, short, char); char __thiscall ctype_char_narrow_ch(const ctype_char*, char, char); +char __thiscall ctype_char_widen_ch(const ctype_char*, char); typedef struct { LCID handle; @@ -346,6 +347,7 @@ typedef struct { } ctype_wchar; char __thiscall ctype_wchar_narrow_ch(const ctype_wchar*, wchar_t, char); +wchar_t __thiscall ctype_wchar_widen_ch(const ctype_wchar*, char); /* class locale */ typedef struct