James Hawkins truiken@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.