advpack/tests: Print the unexpected result in function check_ini_contents.

This commit is contained in:
Stefan Leichter 2007-10-28 22:41:59 +01:00 committed by Alexandre Julliard
parent a8c66e9e77
commit 9a04b754e9
1 changed files with 9 additions and 3 deletions

View File

@ -112,17 +112,23 @@ static BOOL check_ini_contents(LPSTR filename, BOOL add)
GetPrivateProfileStringA("backup", "one", NULL, field, FIELD_LEN, filename);
match = !lstrcmpA(field, "-1,0,0,0,0,0,-1");
if ((add && !match) || (!add && match))
if ((add && !match) || (!add && match)) {
trace("first test: got %s\n", field);
ret = FALSE;
}
GetPrivateProfileStringA("backup", "two", NULL, field, FIELD_LEN, filename);
if (lstrcmpA(field, "-1,0,0,0,0,0,-1"))
if (lstrcmpA(field, "-1,0,0,0,0,0,-1")) {
trace("second test: got %s\n", field);
ret = FALSE;
}
GetPrivateProfileStringA("backup", "three", NULL, field, FIELD_LEN, filename);
match = !lstrcmpA(field, "-1,0,0,0,0,0,-1");
if ((add && !match) || (!add && match))
if ((add && !match) || (!add && match)) {
trace("third test: got %s\n", field);
ret = FALSE;
}
return ret;
}