msvcrt: Fix size test of structure returned by _Gettnames.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2016-01-20 11:42:03 +01:00 committed by Alexandre Julliard
parent c05dd9e11f
commit 9189eb2208
1 changed files with 2 additions and 2 deletions

View File

@ -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);