RegDeleteTree [8]
Alexandre Julliard
julliard at winehq.org
Wed May 23 07:39:53 CDT 2007
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.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list