Fix registry test for Win9x by skipping a section that fails, but
succeeds on NT.
This commit is contained in:
parent
22be9fbcef
commit
44246e47ec
@ -267,6 +267,10 @@ static void test_reg_open_key()
|
|||||||
ok(hkResult != NULL, "expected hkResult != NULL\n");
|
ok(hkResult != NULL, "expected hkResult != NULL\n");
|
||||||
hkPreserve = hkResult;
|
hkPreserve = hkResult;
|
||||||
|
|
||||||
|
/* these tests fail on Win9x, but we want to be compatible with NT, so
|
||||||
|
* run them if we can */
|
||||||
|
if (!(GetVersion() & 0x80000000))
|
||||||
|
{
|
||||||
/* open same key twice */
|
/* open same key twice */
|
||||||
ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkResult);
|
ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkResult);
|
||||||
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
|
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
|
||||||
@ -309,6 +313,7 @@ static void test_reg_open_key()
|
|||||||
ret = RegOpenKeyA(NULL, NULL, &hkResult);
|
ret = RegOpenKeyA(NULL, NULL, &hkResult);
|
||||||
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
|
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
|
||||||
ok(hkResult == NULL, "expected hkResult == NULL\n");
|
ok(hkResult == NULL, "expected hkResult == NULL\n");
|
||||||
|
}
|
||||||
|
|
||||||
/* only send NULL hKey
|
/* only send NULL hKey
|
||||||
* the value of hkResult remains unchanged
|
* the value of hkResult remains unchanged
|
||||||
|
Loading…
x
Reference in New Issue
Block a user