rpcrt4: Fix the return value of NdrFullPointerQueryRefId for a pointer ID of 0.
This commit is contained in:
parent
d6f293f7be
commit
51dbc8d06b
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue