Commit 4d1fa583 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

rpcrt4/tests: Don't crash on NT4.

parent e4897a82
......@@ -1346,7 +1346,7 @@ s_authinfo_test(unsigned int protseq, int secure)
todo_wine
ok(principal != NULL, "NULL principal\n");
}
if (protseq == RPC_PROTSEQ_LRPC && principal)
if (protseq == RPC_PROTSEQ_LRPC && principal && pGetUserNameExA)
{
int len;
char *spn;
......@@ -1399,6 +1399,9 @@ set_auth_info(RPC_BINDING_HANDLE handle)
RPC_STATUS status;
RPC_SECURITY_QOS qos;
if (!pGetUserNameExA)
return;
qos.Version = 1;
qos.Capabilities = RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH;
qos.IdentityTracking = RPC_C_QOS_IDENTITY_STATIC;
......@@ -1573,6 +1576,8 @@ START_TEST(server)
domain_and_user = HeapAlloc(GetProcessHeap(), 0, size);
ok(pGetUserNameExA(NameSamCompatible, domain_and_user, &size), "GetUserNameExA\n");
}
else
win_skip("GetUserNameExA is needed for some authentication tests\n");
argc = winetest_get_mainargs(&argv);
progname = argv[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment