Skip to content

Commit

Permalink
advapi32/tests: Simplify conditional expression (PVS-Studio).
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Sivov <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
nsivov authored and julliard committed Oct 13, 2015
1 parent bd957b6 commit 076f50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/advapi32/tests/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ static void test_sid_str(PSID * sid)
DWORD acc_size = MAX_PATH;
DWORD dom_size = MAX_PATH;
ret = LookupAccountSidA (NULL, sid, account, &acc_size, domain, &dom_size, &use);
ok(ret || (!ret && (GetLastError() == ERROR_NONE_MAPPED)),
ok(ret || GetLastError() == ERROR_NONE_MAPPED,
"LookupAccountSid(%s) failed: %d\n", str_sid, GetLastError());
if (ret)
trace(" %s %s\\%s %d\n", str_sid, domain, account, use);
Expand Down

0 comments on commit 076f50e

Please sign in to comment.