Piotr Caban : msvcrt: Added _getptd implementation.

Alexandre Julliard julliard at winehq.org
Wed May 25 11:28:12 CDT 2011


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue May 24 17:23:24 2011 +0200

msvcrt: Added _getptd implementation.

---

 dlls/msvcr100/msvcr100.spec |    2 +-
 dlls/msvcr80/msvcr80.spec   |    2 +-
 dlls/msvcr90/msvcr90.spec   |    2 +-
 dlls/msvcrt/msvcrt.spec     |    1 +
 dlls/msvcrt/thread.c        |    9 +++++++++
 5 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec
index 607c866..ecdb758 100644
--- a/dlls/msvcr100/msvcr100.spec
+++ b/dlls/msvcr100/msvcr100.spec
@@ -708,7 +708,7 @@
 @ cdecl _getmaxstdio() msvcrt._getmaxstdio
 @ cdecl _getmbcp() msvcrt._getmbcp
 @ cdecl _getpid() msvcrt._getpid
-@ stub _getptd
+@ cdecl _getptd() msvcrt._getptd
 @ cdecl _getsystime(ptr) msvcrt._getsystime
 @ cdecl _getw(ptr) msvcrt._getw
 @ stub _getwch
diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec
index 905737f..59dd2f5 100644
--- a/dlls/msvcr80/msvcr80.spec
+++ b/dlls/msvcr80/msvcr80.spec
@@ -555,7 +555,7 @@
 @ cdecl _getmaxstdio() msvcrt._getmaxstdio
 @ cdecl _getmbcp() msvcrt._getmbcp
 @ cdecl _getpid() msvcrt._getpid
-@ stub _getptd
+@ cdecl _getptd() msvcrt._getptd
 @ cdecl _getsystime(ptr) msvcrt._getsystime
 @ cdecl _getw(ptr) msvcrt._getw
 @ stub _getwch
diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec
index c667d04..842dd25 100644
--- a/dlls/msvcr90/msvcr90.spec
+++ b/dlls/msvcr90/msvcr90.spec
@@ -543,7 +543,7 @@
 @ cdecl _getmaxstdio() msvcrt._getmaxstdio
 @ cdecl _getmbcp() msvcrt._getmbcp
 @ cdecl _getpid() msvcrt._getpid
-@ stub _getptd
+@ cdecl _getptd() msvcrt._getptd
 @ cdecl _getsystime(ptr) msvcrt._getsystime
 @ cdecl _getw(ptr) msvcrt._getw
 @ stub _getwch
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index 3534c1e..7e00607 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -1502,3 +1502,4 @@
 @ cdecl _wdupenv_s(ptr ptr wstr)
 @ cdecl _get_printf_count_output()
 @ cdecl _set_printf_count_output(long)
+@ cdecl _getptd()
diff --git a/dlls/msvcrt/thread.c b/dlls/msvcrt/thread.c
index 8515477..2486a3f 100644
--- a/dlls/msvcrt/thread.c
+++ b/dlls/msvcrt/thread.c
@@ -159,3 +159,12 @@ void CDECL _endthreadex(
   /* FIXME */
   ExitThread(retval);
 }
+
+/*********************************************************************
+ * _getptd - not exported in native msvcrt
+ */
+thread_data_t* CDECL _getptd(void)
+{
+    FIXME("returns undocumented/not fully filled data\n");
+    return msvcrt_get_thread_data();
+}




More information about the wine-cvs mailing list