advapi32/tests: Add tests for RegSetValueExW and RegQueryValueExW.

Alexandre Julliard julliard at winehq.org
Mon Jul 10 04:32:02 CDT 2017


Jactry Zeng <jactry92 at gmail.com> writes:

> Hi Alexandre,
> 2017-07-10 16:58 GMT+08:00 Alexandre Julliard <julliard at winehq.org>:
>>
>> I don't see how this is different from the existing tests.
>
> Do you mean https://source.winehq.org/git/wine.git/blob/a94938819280aa52fbc545911ca70a6c3a83ab49:/dlls/advapi32/tests/registry.c#l1771 ?
>
> The difference is here set an empty string and a zero length for RegSetValueExW:
>
> + ret = RegSetValueExW(hkey_main, name4W, 0, REG_SZ, (const BYTE *)emptyW, lstrlenW(emptyW));
>
> Later RegQueryValueExW will get a zero length and it will not set buffer[0] as NULL:

That's also tested already, in test_hkey_main_Value_A/W.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list