Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7af506b2
Commit
7af506b2
authored
May 26, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix NdrFullPointerQueryRefId to make more tests pass.
parent
767631d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
ndr_fullpointer.c
dlls/rpcrt4/ndr_fullpointer.c
+9
-0
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+3
-9
No files found.
dlls/rpcrt4/ndr_fullpointer.c
View file @
7af506b2
...
...
@@ -145,8 +145,17 @@ int WINAPI NdrFullPointerQueryRefId(PFULL_PTR_XLAT_TABLES pXlatTables,
expand_pointer_table_if_necessary
(
pXlatTables
,
RefId
);
pXlatTables
->
NextRefId
=
max
(
RefId
+
1
,
pXlatTables
->
NextRefId
);
if
(
pXlatTables
->
RefIdToPointer
.
NumberOfEntries
>
RefId
)
{
*
ppPointer
=
pXlatTables
->
RefIdToPointer
.
XlatTable
[
RefId
];
if
(
QueryType
)
return
pXlatTables
->
RefIdToPointer
.
StateTable
[
RefId
];
else
return
0
;
}
*
ppPointer
=
NULL
;
return
0
;
}
...
...
dlls/rpcrt4/tests/ndr_marshall.c
View file @
7af506b2
...
...
@@ -762,21 +762,17 @@ static void test_fullpointer_xlat(void)
ret
=
NdrFullPointerQueryPointer
(
pXlatTables
,
(
void
*
)
0xcafebeef
,
1
,
&
RefId
);
ok
(
ret
==
0
,
"ret should be 0 instead of 0x%x
\n
"
,
ret
);
todo_wine
{
ok
(
RefId
==
0x3
,
"RefId should be 0x1 instead of 0x%lx
\n
"
,
RefId
);
}
ok
(
RefId
==
0x3
,
"RefId should be 0x3 instead of 0x%lx
\n
"
,
RefId
);
ret
=
NdrFullPointerQueryPointer
(
pXlatTables
,
(
void
*
)
0xcafebeef
,
1
,
&
RefId
);
ok
(
ret
==
1
,
"ret should be 1 instead of 0x%x
\n
"
,
ret
);
todo_wine
{
ok
(
RefId
==
0x3
,
"RefId should be 0x1 instead of 0x%lx
\n
"
,
RefId
);
}
ok
(
RefId
==
0x3
,
"RefId should be 0x3 instead of 0x%lx
\n
"
,
RefId
);
ret
=
NdrFullPointerQueryPointer
(
pXlatTables
,
(
void
*
)
0xcafebeef
,
0
,
&
RefId
);
todo_wine
{
ok
(
ret
==
0
,
"ret should be 0 instead of 0x%x
\n
"
,
ret
);
ok
(
RefId
==
0x3
,
"RefId should be 0x1 instead of 0x%lx
\n
"
,
RefId
);
}
ok
(
RefId
==
0x3
,
"RefId should be 0x3 instead of 0x%lx
\n
"
,
RefId
);
ret
=
NdrFullPointerQueryPointer
(
pXlatTables
,
(
void
*
)
0xcafebabe
,
0
,
&
RefId
);
ok
(
ret
==
0
,
"ret should be 0 instead of 0x%x
\n
"
,
ret
);
...
...
@@ -784,9 +780,7 @@ static void test_fullpointer_xlat(void)
ret
=
NdrFullPointerQueryPointer
(
pXlatTables
,
(
void
*
)
0xdeadbeef
,
0
,
&
RefId
);
ok
(
ret
==
0
,
"ret should be 0 instead of 0x%x
\n
"
,
ret
);
todo_wine
{
ok
(
RefId
==
0x4
,
"RefId should be 0x4 instead of 0x%lx
\n
"
,
RefId
);
}
/* "freeing" phase */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment