[PATCH] advapi32: RegDeleteKey tests

Dmitry Timoshkov dmitry at baikal.ru
Mon Jun 24 22:46:15 CDT 2013


George Stephanos <gaf.stephanos at gmail.com> wrote:

> +    res = RegOpenKeyExA( hkey, "subkey1", 0, KEY_READ, &hkeysub1 );
> +    ok(res != ERROR_SUCCESS, "test key found in user's classes: %d\n", res);
...
> +    res = RegOpenKeyExA( hklm, "subkey1", 0, KEY_READ, &hklmsub1 );
> +    ok(res != ERROR_SUCCESS, "test key found in hklm: %d\n", res);

Testing for res != ERROR_SUCCESS is not very useful, please check for
a particular error code. Also please close successfully opened handles.

-- 
Dmitry.



More information about the wine-devel mailing list