Piotr Caban : msvcr90: Check more fields in _getptd tests.
Alexandre Julliard
julliard at winehq.org
Tue Mar 5 12:59:18 CST 2013
Module: wine
Branch: master
Commit: d36c6452ce011e3ac2d0c71464907388323bf45b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d36c6452ce011e3ac2d0c71464907388323bf45b
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue Mar 5 11:06:08 2013 +0100
msvcr90: Check more fields in _getptd tests.
---
dlls/msvcr90/tests/msvcr90.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcr90/tests/msvcr90.c b/dlls/msvcr90/tests/msvcr90.c
index f1ac539..fe3fa58 100644
--- a/dlls/msvcr90/tests/msvcr90.c
+++ b/dlls/msvcr90/tests/msvcr90.c
@@ -117,6 +117,7 @@ static int (__cdecl *p_feof)(FILE*);
static int (__cdecl *p_ferror)(FILE*);
static int (__cdecl *p_flsbuf)(int, FILE*);
static unsigned long (__cdecl *p_byteswap_ulong)(unsigned long);
+static void** (__cdecl *p__pxcptinfoptrs)(void);
/* make sure we use the correct errno */
#undef errno
@@ -302,6 +303,7 @@ static BOOL init(void)
SET(p_ferror, "ferror");
SET(p_flsbuf, "_flsbuf");
SET(p_byteswap_ulong, "_byteswap_ulong");
+ SET(p__pxcptinfoptrs, "__pxcptinfoptrs");
if (sizeof(void *) == 8)
{
SET(p_type_info_name_internal_method, "?_name_internal_method at type_info@@QEBAPEBDPEAU__type_info_node@@@Z");
@@ -1015,7 +1017,8 @@ struct __thread_data {
struct tm *time_buffer;
char *efcvt_buffer;
int unk3[2];
- void *unk4[4];
+ void *unk4[3];
+ EXCEPTION_POINTERS *xcptinfo;
int fpecode;
pthreadmbcinfo mbcinfo;
pthreadlocinfo locinfo;
@@ -1060,6 +1063,7 @@ static void test_getptd(void)
ok(p_wasctime(&time) == ptd->wasctime_buffer, "ptd->wasctime_buffer is incorrect\n");
ok(p_localtime64(&secs) == ptd->time_buffer, "ptd->time_buffer is incorrect\n");
ok(p_ecvt(3.12, 1, &dec, &sign) == ptd->efcvt_buffer, "ptd->efcvt_buffer is incorrect\n");
+ ok(p__pxcptinfoptrs() == (void**)&ptd->xcptinfo, "ptd->xcptinfo is incorrect\n");
ok(p_fpecode() == &ptd->fpecode, "ptd->fpecode is incorrect\n");
mbcinfo = ptd->mbcinfo;
locinfo = ptd->locinfo;
More information about the wine-cvs
mailing list