advapi32/tests: Fix a crash when ConvertSidToStringSidA isn't available.

This commit is contained in:
Ivan Leo 2006-06-24 22:36:40 +01:00 committed by Alexandre Julliard
parent 1ad6c1b93c
commit 81745f1c41
1 changed files with 3 additions and 0 deletions

View File

@ -706,6 +706,9 @@ static void test_token_attr(void)
DWORD i, GLE;
LPSTR SidString;
if(!pConvertSidToStringSidA)
return;
ret = OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &Token);
GLE = GetLastError();
ok(ret || (GLE == ERROR_CALL_NOT_IMPLEMENTED),