Use a registry key for copying, that's known on every system.
This commit is contained in:
parent
8e927a6a74
commit
361ee299ac
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
/* Keys used for testing */
|
/* Keys used for testing */
|
||||||
#define REG_TEST_KEY "Software\\Wine\\Test"
|
#define REG_TEST_KEY "Software\\Wine\\Test"
|
||||||
#define REG_CURRENT_VERSION "Software\\Microsoft\\Windows NT\\CurrentVersion"
|
#define REG_CURRENT_VERSION "Software\\Microsoft\\Windows\\CurrentVersion"
|
||||||
|
|
||||||
static HMODULE hshlwapi;
|
static HMODULE hshlwapi;
|
||||||
typedef DWORD (WINAPI *SHCopyKeyA_func)(HKEY,LPCSTR,HKEY,DWORD);
|
typedef DWORD (WINAPI *SHCopyKeyA_func)(HKEY,LPCSTR,HKEY,DWORD);
|
||||||
|
@ -255,16 +255,16 @@ static void test_SHCopyKey(void)
|
||||||
RegCloseKey(hKeySrc);
|
RegCloseKey(hKeySrc);
|
||||||
RegCloseKey(hKeyDst);
|
RegCloseKey(hKeyDst);
|
||||||
|
|
||||||
/* Check we copied the sub keys, i.e. AeDebug from the default wine registry */
|
/* Check we copied the sub keys, i.e. something that's on every windows system (including Wine) */
|
||||||
hKeyDst = NULL;
|
hKeyDst = NULL;
|
||||||
if (RegOpenKeyA(HKEY_CURRENT_USER, REG_TEST_KEY "\\CopyDestination\\AeDebug", &hKeyDst) || !hKeyDst)
|
if (RegOpenKeyA(HKEY_CURRENT_USER, REG_TEST_KEY "\\CopyDestination\\Setup", &hKeyDst) || !hKeyDst)
|
||||||
{
|
{
|
||||||
ok(0, "didn't open copy\n");
|
ok(0, "didn't open copy\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* And the we copied the values too */
|
/* And the we copied the values too */
|
||||||
ok(!SHQueryValueExA(hKeyDst, "Debugger", NULL, NULL, NULL, NULL), "SHQueryValueExA failed\n");
|
ok(!SHQueryValueExA(hKeyDst, "BootDir", NULL, NULL, NULL, NULL), "SHQueryValueExA failed\n");
|
||||||
|
|
||||||
RegCloseKey(hKeyDst);
|
RegCloseKey(hKeyDst);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue