rpcrt4: Fix the return value of NdrFullPointerQueryRefId for a pointer ID of 0.

This commit is contained in:
Rob Shearman 2009-11-18 00:25:20 +00:00 committed by Alexandre Julliard
parent d6f293f7be
commit 51dbc8d06b
2 changed files with 3 additions and 1 deletions

View File

@ -161,6 +161,9 @@ int WINAPI NdrFullPointerQueryRefId(PFULL_PTR_XLAT_TABLES pXlatTables,
{
TRACE("(%p, 0x%x, %d, %p)\n", pXlatTables, RefId, QueryType, ppPointer);
if (!RefId)
return 1;
expand_pointer_table_if_necessary(pXlatTables, RefId);
pXlatTables->NextRefId = max(RefId + 1, pXlatTables->NextRefId);

View File

@ -1047,7 +1047,6 @@ static void test_fullpointer_xlat(void)
/* "unmarshaling" phase */
ret = NdrFullPointerQueryRefId(pXlatTables, 0x0, 0, &Pointer);
todo_wine
ok(ret == 1, "ret should be 1 instead of 0x%x\n", ret);
ret = NdrFullPointerQueryRefId(pXlatTables, 0x2, 0, &Pointer);