[WINESYNC] setupapi: Create the registry value if it doesn't exist in append_multi_sz_value().

wine commit id 38e36e8fdaf6dc682ce5af7b5b00cb795fffd967 by Zebediah Figura <zfigura@codeweavers.com>
This commit is contained in:
winesync 2023-09-14 22:11:09 +02:00 committed by Hermès Bélusca-Maïto
parent 66a7ba0218
commit e02150ffe1
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 5 additions and 8 deletions

View file

@ -2332,13 +2332,10 @@ static void test_append_reg(void)
ok(!l, "Got error %lu.\n", l);
size = sizeof(value);
l = RegQueryValueExA(key, "value", NULL, &type, (BYTE *)value, &size);
todo_wine ok(!l, "Got error %lu.\n", l);
if (!l)
{
ok(type == REG_MULTI_SZ, "Got type %#lx.\n", type);
ok(size == sizeof("data\0"), "Got size %lu.\n", size);
ok(!memcmp(value, "data\0", size), "Got data %s.\n", debugstr_an(value, size));
}
ok(!l, "Got error %lu.\n", l);
ok(type == REG_MULTI_SZ, "Got type %#lx.\n", type);
ok(size == sizeof("data\0"), "Got size %lu.\n", size);
ok(!memcmp(value, "data\0", size), "Got data %s.\n", debugstr_an(value, size));
/* Key exists and already has a value. */

View file

@ -10,4 +10,4 @@ files:
dlls/setupapi/setupcab.c: dll/win32/setupapi/setupcab.c
dlls/setupapi/stringtable.c: dll/win32/setupapi/stringtable_wine.c
tags:
wine: 0ab56b88dfdca442ab0820eacc14f6397f628924
wine: 38e36e8fdaf6dc682ce5af7b5b00cb795fffd967