msi/tests: Check the result of get_system_dirs and get_user_dirs.
This commit is contained in:
parent
8c7d6b1c94
commit
8e5230740a
|
@ -2138,7 +2138,7 @@ static BOOL get_system_dirs(void)
|
||||||
|
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
|
|
||||||
if(GetWindowsDirectoryA(WINDOWS_DIR, MAX_PATH) != ERROR_SUCCESS)
|
if (!GetWindowsDirectoryA(WINDOWS_DIR, MAX_PATH))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -6016,8 +6016,8 @@ START_TEST(action)
|
||||||
if(len && (CURR_DIR[len - 1] == '\\'))
|
if(len && (CURR_DIR[len - 1] == '\\'))
|
||||||
CURR_DIR[len - 1] = 0;
|
CURR_DIR[len - 1] = 0;
|
||||||
|
|
||||||
get_system_dirs();
|
ok(get_system_dirs(), "failed to retrieve system dirs\n");
|
||||||
get_user_dirs();
|
ok(get_user_dirs(), "failed to retrieve user dirs\n");
|
||||||
|
|
||||||
/* Create a restore point ourselves so we circumvent the multitude of restore points
|
/* Create a restore point ourselves so we circumvent the multitude of restore points
|
||||||
* that would have been created by all the installation and removal tests.
|
* that would have been created by all the installation and removal tests.
|
||||||
|
|
|
@ -2205,7 +2205,7 @@ static BOOL get_system_dirs(void)
|
||||||
|
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
|
|
||||||
if(GetWindowsDirectoryA(WINDOWS_DIR, MAX_PATH) != ERROR_SUCCESS)
|
if(!GetWindowsDirectoryA(WINDOWS_DIR, MAX_PATH))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -6371,8 +6371,8 @@ START_TEST(install)
|
||||||
if(len && (CURR_DIR[len - 1] == '\\'))
|
if(len && (CURR_DIR[len - 1] == '\\'))
|
||||||
CURR_DIR[len - 1] = 0;
|
CURR_DIR[len - 1] = 0;
|
||||||
|
|
||||||
get_system_dirs();
|
ok(get_system_dirs(), "failed to retrieve system dirs\n");
|
||||||
get_user_dirs();
|
ok(get_user_dirs(), "failed to retrieve user dirs\n");
|
||||||
|
|
||||||
/* Create a restore point ourselves so we circumvent the multitude of restore points
|
/* Create a restore point ourselves so we circumvent the multitude of restore points
|
||||||
* that would have been created by all the installation and removal tests.
|
* that would have been created by all the installation and removal tests.
|
||||||
|
|
Loading…
Reference in New Issue