Commit 51dbc8d0 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent d6f293f7
...@@ -161,6 +161,9 @@ int WINAPI NdrFullPointerQueryRefId(PFULL_PTR_XLAT_TABLES pXlatTables, ...@@ -161,6 +161,9 @@ int WINAPI NdrFullPointerQueryRefId(PFULL_PTR_XLAT_TABLES pXlatTables,
{ {
TRACE("(%p, 0x%x, %d, %p)\n", pXlatTables, RefId, QueryType, ppPointer); TRACE("(%p, 0x%x, %d, %p)\n", pXlatTables, RefId, QueryType, ppPointer);
if (!RefId)
return 1;
expand_pointer_table_if_necessary(pXlatTables, RefId); expand_pointer_table_if_necessary(pXlatTables, RefId);
pXlatTables->NextRefId = max(RefId + 1, pXlatTables->NextRefId); pXlatTables->NextRefId = max(RefId + 1, pXlatTables->NextRefId);
......
...@@ -1047,7 +1047,6 @@ static void test_fullpointer_xlat(void) ...@@ -1047,7 +1047,6 @@ static void test_fullpointer_xlat(void)
/* "unmarshaling" phase */ /* "unmarshaling" phase */
ret = NdrFullPointerQueryRefId(pXlatTables, 0x0, 0, &Pointer); ret = NdrFullPointerQueryRefId(pXlatTables, 0x0, 0, &Pointer);
todo_wine
ok(ret == 1, "ret should be 1 instead of 0x%x\n", ret); ok(ret == 1, "ret should be 1 instead of 0x%x\n", ret);
ret = NdrFullPointerQueryRefId(pXlatTables, 0x2, 0, &Pointer); ret = NdrFullPointerQueryRefId(pXlatTables, 0x2, 0, &Pointer);
......
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