Piotr Caban : msvcrt: Fix size test of structure returned by _Gettnames.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 20 10:50:02 CST 2016
Module: wine
Branch: master
Commit: 9189eb2208ac4129ada43c6bdec832ea0b961a0e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9189eb2208ac4129ada43c6bdec832ea0b961a0e
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Jan 20 11:42:03 2016 +0100
msvcrt: Fix size test of structure returned by _Gettnames.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/tests/locale.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/tests/locale.c b/dlls/msvcrt/tests/locale.c
index 65bb74b..f4d86bc 100644
--- a/dlls/msvcrt/tests/locale.c
+++ b/dlls/msvcrt/tests/locale.c
@@ -671,12 +671,12 @@ static void test__Gettnames(void)
return;
ret = _Gettnames();
- size = ret->data-(char*)ret;
+ size = ret->str[0]-(char*)ret;
/* Newer version of the structure stores both ascii and unicode strings.
* Unicode strings are only initialized on Windows 7
*/
if(sizeof(void*) == 8)
- ok(size==0x2c0 || broken(size==0x170), "structure size: %x\n", size);
+ ok(size==0x2c0 || broken(size==0x168), "structure size: %x\n", size);
else
ok(size==0x164 || broken(size==0xb8), "structure size: %x\n", size);
More information about the wine-cvs
mailing list