RegDeleteTree [3rd]

Stefan Leichter Stefan.Leichter at camline.com
Thu Apr 19 16:54:09 CDT 2007


Am Thursday 19 April 2007 12:14 schrieb Alexandre Julliard:
> Stefan Leichter <Stefan.Leichter at camline.com> writes:
> > +                /* Recursively delete all the subkeys */
> > +                for (i = 0; i < dwKeyCount && !ret; i++) {
> > +                    dwSize = dwMaxSubkeyLen;
> > +                    ret = RegEnumKeyExW(hSubKey, i, lpszName, &dwSize,
> > NULL, +                     NULL, NULL, NULL);
>
> This won't work, the index will change as you delete keys.
>
> > +	} 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 Paul,

i'm sorry for bothering you again on this topic, but it looks like your are 
the onlyone around having a Vista installation.

Can you please verify the attached tests and report the results back.

Thanks for your help
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RegDeleteTreeATests.diff
Type: text/x-diff
Size: 1741 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20070419/0e9d9621/RegDeleteTreeATests-0001.bin


More information about the wine-devel mailing list