msvcrt: Added _getptd implementation.
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 @@
/* 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();
+}