advapi32: Add RegOpen/CloseKey test and fixes
Alexandre Julliard
julliard at winehq.org
Fri Feb 18 04:13:08 CST 2005
James Hawkins <truiken at gmail.com> writes:
> + ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkHandle);
> + hkPreserve = hkHandle;
> + ret = RegCloseKey(hkHandle);
> + ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
> + ok(hkHandle == hkPreserve, "expected hkHandle != hkPreserve\n");
This test is meaningless, since the handle is passed by value to
RegCloseKey it cannot possibly be modified.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list