advapi32/tests: Fix a crash when ConvertSidToStringSidA isn't available.
This commit is contained in:
parent
1ad6c1b93c
commit
81745f1c41
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue