[RPCRT4_WINETEST] Addendum to r73006.

svn path=/trunk/; revision=73007
This commit is contained in:
Amine Khaldi 2016-10-21 09:02:08 +00:00
parent c0e27b85ab
commit a4cfe8d2da

View file

@ -743,6 +743,46 @@ void __cdecl s_context_handle_test(void)
pNDRSContextUnmarshall2(binding, buf, NDR_LOCAL_DATA_REPRESENTATION, &server_if2.InterfaceId, 0);
}
binding = NULL;
status = RpcBindingServerFromClient(NULL, &binding);
ok(status == RPC_S_OK, "expected RPC_S_OK got %u\n", status);
ok(binding != NULL, "binding is NULL\n");
if (status == RPC_S_OK && binding != NULL)
{
unsigned char* string_binding = NULL;
unsigned char* object_uuid = NULL;
unsigned char* protseq = NULL;
unsigned char* network_address = NULL;
unsigned char* endpoint = NULL;
unsigned char* network_options = NULL;
status = RpcBindingToStringBindingA(binding, &string_binding);
ok(status == RPC_S_OK, "expected RPC_S_OK got %u\n", status);
ok(string_binding != NULL, "string_binding is NULL\n");
status = RpcStringBindingParseA(string_binding, &object_uuid, &protseq, &network_address, &endpoint, &network_options);
ok(status == RPC_S_OK, "expected RPC_S_OK got %u\n", status);
ok(protseq != NULL && *protseq != '\0', "protseq is %s\n", protseq);
ok(network_address != NULL && *network_address != '\0', "network_address is %s\n", network_address);
todo_wine
{
ok(object_uuid != NULL && *object_uuid == '\0', "object_uuid is %s\n", object_uuid);
ok(endpoint != NULL && *endpoint == '\0', "endpoint is %s\n", endpoint);
ok(network_options != NULL && *network_options == '\0', "network_options is %s\n", network_options);
}
RpcStringFreeA(&string_binding);
RpcStringFreeA(&object_uuid);
RpcStringFreeA(&protseq);
RpcStringFreeA(&network_address);
RpcStringFreeA(&endpoint);
RpcStringFreeA(&network_options);
RpcBindingFree(&binding);
}
}
void __cdecl s_get_numbers(int length, int size, pints_t n[])