Piotr Caban : msvcp90: Added _Locinfo::_Getmonths implementation.
Alexandre Julliard
julliard at winehq.org
Thu Dec 8 13:43:39 CST 2011
Module: wine
Branch: master
Commit: 462fa62c535bf979274382d226110e5e1b6a7249
URL: http://source.winehq.org/git/wine.git/?a=commit;h=462fa62c535bf979274382d226110e5e1b6a7249
Author: Piotr Caban <piotr at codeweavers.com>
Date: Thu Dec 8 12:10:12 2011 +0100
msvcp90: Added _Locinfo::_Getmonths implementation.
---
dlls/msvcp90/locale.c | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcp90/locale.c b/dlls/msvcp90/locale.c
index 1163b31..d0e5616 100644
--- a/dlls/msvcp90/locale.c
+++ b/dlls/msvcp90/locale.c
@@ -29,6 +29,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(msvcp90);
char* __cdecl _Getdays(void);
+char* __cdecl _Getmonths(void);
typedef int category;
@@ -952,10 +953,21 @@ const char* __thiscall _Locinfo__Getdays(_Locinfo *this)
/* ?_Getmonths at _Locinfo@std@@QBEPBDXZ */
/* ?_Getmonths at _Locinfo@std@@QEBAPEBDXZ */
DEFINE_THISCALL_WRAPPER(_Locinfo__Getmonths, 4)
-const char* __thiscall _Locinfo__Getmonths(const _Locinfo *this)
+const char* __thiscall _Locinfo__Getmonths(_Locinfo *this)
{
- FIXME("(%p) stub\n", this);
- return NULL;
+ char *months = _Getmonths();
+
+ TRACE("(%p)\n", this);
+
+ if(months) {
+ MSVCP_basic_string_char_dtor(&this->months);
+ MSVCP_basic_string_char_ctor_cstr(&this->months, months);
+ free(months);
+ }
+
+ return this->months.size ? MSVCP_basic_string_char_c_str(&this->months) :
+ ":Jan:January:Feb:February:Mar:March:Apr:April:May:May:Jun:June:Jul:July"
+ ":Aug:August:Sep:September:Oct:October:Nov:November:Dec:December";
}
/* ?_Getfalse at _Locinfo@std@@QBEPBDXZ */
More information about the wine-cvs
mailing list