kernel32/tests: Test search with alias guid.

This commit is contained in:
Nikolay Sivov 2013-08-30 08:03:53 +04:00 committed by Alexandre Julliard
parent 88070accd2
commit 2c31fce106
1 changed files with 14 additions and 2 deletions

View File

@ -1117,8 +1117,8 @@ struct comclassredirect_data {
static void test_find_com_redirection(HANDLE handle, const GUID *clsid, const GUID *tlid, ULONG exid, int line) static void test_find_com_redirection(HANDLE handle, const GUID *clsid, const GUID *tlid, ULONG exid, int line)
{ {
struct comclassredirect_data *comclass; struct comclassredirect_data *comclass, *comclass2;
ACTCTX_SECTION_KEYED_DATA data; ACTCTX_SECTION_KEYED_DATA data, data2;
BOOL ret; BOOL ret;
memset(&data, 0xfe, sizeof(data)); memset(&data, 0xfe, sizeof(data));
@ -1189,6 +1189,18 @@ todo_wine {
ok_(__FILE__, line)(data.hActCtx == NULL, "data.hActCtx=%p\n", data.hActCtx); ok_(__FILE__, line)(data.hActCtx == NULL, "data.hActCtx=%p\n", data.hActCtx);
ok_(__FILE__, line)(data.ulAssemblyRosterIndex == exid, "data.ulAssemblyRosterIndex=%u, expected %u\n", ok_(__FILE__, line)(data.ulAssemblyRosterIndex == exid, "data.ulAssemblyRosterIndex=%u, expected %u\n",
data.ulAssemblyRosterIndex, exid); data.ulAssemblyRosterIndex, exid);
/* generated guid for this class works as key guid in search */
memset(&data2, 0xfe, sizeof(data2));
data2.cbSize = sizeof(data2);
ret = pFindActCtxSectionGuid(0, NULL,
ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION,
&comclass->alias, &data2);
ok_(__FILE__, line)(ret, "FindActCtxSectionGuid failed: %u\n", GetLastError());
comclass2 = (struct comclassredirect_data*)data2.lpData;
ok_(__FILE__, line)(comclass->size == comclass2->size, "got wrong data length %d, expected %d\n", comclass2->size, comclass->size);
ok_(__FILE__, line)(!memcmp(comclass, comclass2, comclass->size), "got wrong data\n");
} }
static void test_wndclass_section(void) static void test_wndclass_section(void)