RegDeleteTree [9]

Stefan Leichter Stefan.Leichter at camline.com
Thu May 24 16:28:56 CDT 2007


Am Wednesday 23 May 2007 14:39 schrieb Alexandre Julliard:
> Stefan Leichter <Stefan.Leichter at camline.com> writes:
> > +    /* Recursively delete all the subkeys */
> > +    for (i = 0; i < dwKeyCount; i++) {
> > +        dwSize = dwMaxLen;
> > +        ret = RegEnumKeyExW(hSubKey, 0, lpszName, &dwSize, NULL,
> > +                     NULL, NULL, NULL);
>
> There's no reason to use the key count, you should enum until you get
> an error, it's more reliable.
>
> > +        for (i = 0; i < dwValCount; i++) {
> > +            dwSize = dwMaxLen;
> > +            ret = RegEnumValueW(hKey, 0, lpszName, &dwSize, NULL, NULL,
> > NULL, NULL);
>
> Same here.

ChangeLog
-------------
         added implementation of RegDeleteTreeA/W
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RegDeleteTree.diff
Type: text/x-diff
Size: 3930 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070524/e549e0cc/RegDeleteTree.bin


More information about the wine-patches mailing list