25 Jun
2013
25 Jun
'13
3:46 a.m.
George Stephanos <gaf.stephanos(a)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.