Module: wine Branch: master Commit: a176655414af616517bb57594179a40e491c2357 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a176655414af616517bb575941...
Author: Sebastian Lackner sebastian@fds-team.de Date: Wed Jun 24 02:34:00 2015 +0200
advapi32/tests: Explicitly check return value of GetTokenInformation.
---
dlls/advapi32/tests/security.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index f141b3e..0cb4d7f 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -4290,7 +4290,8 @@ static void test_GetSecurityInfo(void) win_skip("Failed to get current user token\n"); return; } - GetTokenInformation(token, TokenUser, b, l, &l); + bret = GetTokenInformation(token, TokenUser, b, l, &l); + ok(bret, "GetTokenInformation(TokenUser) failed with error %d\n", GetLastError()); CloseHandle( token ); user_sid = ((TOKEN_USER *)b)->User.Sid;