Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
11eb8ee0
Commit
11eb8ee0
authored
May 29, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: If the number of pointers is 0 for NdrFullPointerXlatInit then
set the number of pointers to a large default, so that NumberOfBuckets doesn't end up less than zero.
parent
ff9fd9c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ndr_fullpointer.c
dlls/rpcrt4/ndr_fullpointer.c
+4
-1
No files found.
dlls/rpcrt4/ndr_fullpointer.c
View file @
11eb8ee0
...
@@ -32,11 +32,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(rpc);
...
@@ -32,11 +32,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(rpc);
PFULL_PTR_XLAT_TABLES
WINAPI
NdrFullPointerXlatInit
(
unsigned
long
NumberOfPointers
,
PFULL_PTR_XLAT_TABLES
WINAPI
NdrFullPointerXlatInit
(
unsigned
long
NumberOfPointers
,
XLAT_SIDE
XlatSide
)
XLAT_SIDE
XlatSide
)
{
{
unsigned
long
NumberOfBuckets
=
((
NumberOfPointers
+
3
)
&
4
)
-
1
;
unsigned
long
NumberOfBuckets
;
PFULL_PTR_XLAT_TABLES
pXlatTables
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pXlatTables
));
PFULL_PTR_XLAT_TABLES
pXlatTables
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pXlatTables
));
TRACE
(
"(%ld, %d)
\n
"
,
NumberOfPointers
,
XlatSide
);
TRACE
(
"(%ld, %d)
\n
"
,
NumberOfPointers
,
XlatSide
);
if
(
!
NumberOfPointers
)
NumberOfPointers
=
512
;
NumberOfBuckets
=
((
NumberOfPointers
+
3
)
&
~
3
)
-
1
;
pXlatTables
->
RefIdToPointer
.
XlatTable
=
pXlatTables
->
RefIdToPointer
.
XlatTable
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
void
*
)
*
NumberOfPointers
);
sizeof
(
void
*
)
*
NumberOfPointers
);
...
...
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