RegDeleteTree [3rd]
Robert Shearman
rob at codeweavers.com
Wed Apr 25 16:00:14 CDT 2007
Stefan Leichter wrote:
> Am Thursday 19 April 2007 12:14 schrieb Alexandre Julliard:
>
>> Stefan Leichter <Stefan.Leichter at camline.com> writes:
>>
>>
>>> + } else {
>>> + if (!ret)
>>> + ret = RegSetValueW(hSubKey, NULL, REG_SZ, emptyW, 0);
>>>
>> The function is supposed to delete the key values, that's not what
>> this does.
>>
>> You probably need to write some test cases...
>>
> Hello Alexandre,
>
> i 'm not sure what you mean with this point. I have now added a loop to delete
> all value/data pairs, but this loop is only executed for the default entry
> (value NULL).
>
> If the implementation is not fine for you, can you please suggest detailed
> test cases to be proved.
>
Perhaps:
s/RegSetValueW(hSubKey, NULL, REG_SZ, emptyW,
0)/RegDeleteValueW(hSubKey, NULL)/
--
Rob Shearman
More information about the wine-devel
mailing list