diff --git a/modules/rostests/apitests/kernel32/SetComputerNameExW.c b/modules/rostests/apitests/kernel32/SetComputerNameExW.c index 658e74e8a4..795964dba5 100644 --- a/modules/rostests/apitests/kernel32/SetComputerNameExW.c +++ b/modules/rostests/apitests/kernel32/SetComputerNameExW.c @@ -63,7 +63,7 @@ START_TEST(SetComputerNameExW) /* Get Old Hostname */ szHostNameOld[0] = UNICODE_NULL; cbData = sizeof(szHostNameOld); - Error = RegQueryValueExW(hKeyHN, L"Hostname", NULL, NULL, (LPBYTE)szHostNameOld, &cbData); + Error = RegQueryValueExW(hKeyHN, L"NV Hostname", NULL, NULL, (LPBYTE)szHostNameOld, &cbData); ok_long(Error, ERROR_SUCCESS); ok(szHostNameOld[0], "szHostNameOld is %S", szHostNameOld); @@ -81,11 +81,11 @@ START_TEST(SetComputerNameExW) /* Get New Hostname */ szHostNameNew[0] = UNICODE_NULL; cbData = sizeof(szHostNameNew); - Error = RegQueryValueExW(hKeyHN, L"Hostname", NULL, NULL, (LPBYTE)szHostNameNew, &cbData); + Error = RegQueryValueExW(hKeyHN, L"NV Hostname", NULL, NULL, (LPBYTE)szHostNameNew, &cbData); ok_long(Error, ERROR_SUCCESS); ok(szHostNameNew[0], "szHostNameNew was empty.\n"); - ok(lstrcmpW(szHostNameNew, szHostNameOld) == 0, - "szHostNameNew '%S' should be szHostNameOld '%S'.\n", szHostNameNew, szHostNameOld); + ok(lstrcmpW(szHostNameNew, szNewName) == 0, + "szHostNameNew '%S' should be szNewName '%S'.\n", szHostNameNew, szNewName); /* Get New Computer Name */ szComputerNameNew[0] = UNICODE_NULL;