Piotr Caban : msvcp90: Added _Locinfo::_Getdays implementation.

Alexandre Julliard julliard at winehq.org
Thu Dec 8 13:43:39 CST 2011


Module: wine
Branch: master
Commit: 0c7ed2bdda62ee6da5a7a39f8bc4b826d41b5f2b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0c7ed2bdda62ee6da5a7a39f8bc4b826d41b5f2b

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Thu Dec  8 12:09:54 2011 +0100

msvcp90: Added _Locinfo::_Getdays 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 1a637c0..1163b31 100644
--- a/dlls/msvcp90/locale.c
+++ b/dlls/msvcp90/locale.c
@@ -28,6 +28,8 @@
 #include "wine/debug.h"
 WINE_DEFAULT_DEBUG_CHANNEL(msvcp90);
 
+char* __cdecl _Getdays(void);
+
 typedef int category;
 
 typedef struct _locale_id {
@@ -931,10 +933,20 @@ int __thiscall _Locinfo__Getdateorder(const _Locinfo *this)
 /* ?_Getdays at _Locinfo@std@@QBEPBDXZ */
 /* ?_Getdays at _Locinfo@std@@QEBAPEBDXZ */
 DEFINE_THISCALL_WRAPPER(_Locinfo__Getdays, 4)
-const char* __thiscall _Locinfo__Getdays(const _Locinfo *this)
+const char* __thiscall _Locinfo__Getdays(_Locinfo *this)
 {
-    FIXME("(%p) stub\n", this);
-    return NULL;
+    char *days = _Getdays();
+
+    TRACE("(%p)\n", this);
+
+    if(days) {
+        MSVCP_basic_string_char_dtor(&this->days);
+        MSVCP_basic_string_char_ctor_cstr(&this->days, days);
+        free(days);
+    }
+
+    return this->days.size ? MSVCP_basic_string_char_c_str(&this->days) :
+        ":Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:Wednesday:Thu:Thursday:Fri:Friday:Sat:Saturday";
 }
 
 /* ?_Getmonths at _Locinfo@std@@QBEPBDXZ */




More information about the wine-cvs mailing list