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
62a1beeb
Commit
62a1beeb
authored
Sep 23, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Sep 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Don't call VirtualFree with MEM_RELEASE and non-zero size.
The calls fail with ERROR_INVALID_PARAMETER. Instead just call with a zero size which performs the intended function.
parent
2f10cc5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
cstub.c
dlls/rpcrt4/cstub.c
+2
-6
No files found.
dlls/rpcrt4/cstub.c
View file @
62a1beeb
...
...
@@ -221,9 +221,7 @@ void create_delegating_vtbl(DWORD num_methods)
if
(
current_vtbl
.
table
&&
current_vtbl
.
table
->
ref
==
0
)
{
TRACE
(
"freeing old table
\n
"
);
VirtualFree
(
current_vtbl
.
table
->
methods
,
(
current_vtbl
.
table
->
size
-
3
)
*
sizeof
(
vtbl_method_t
),
MEM_RELEASE
);
VirtualFree
(
current_vtbl
.
table
->
methods
,
0
,
MEM_RELEASE
);
HeapFree
(
GetProcessHeap
(),
0
,
current_vtbl
.
table
);
}
size
=
(
num_methods
-
3
)
*
sizeof
(
vtbl_method_t
);
...
...
@@ -258,9 +256,7 @@ static void release_delegating_vtbl(IUnknownVtbl *vtbl)
if
(
table
->
ref
==
0
&&
table
!=
current_vtbl
.
table
)
{
TRACE
(
"... and we're not current so free'ing
\n
"
);
VirtualFree
(
current_vtbl
.
table
->
methods
,
(
current_vtbl
.
table
->
size
-
3
)
*
sizeof
(
vtbl_method_t
),
MEM_RELEASE
);
VirtualFree
(
current_vtbl
.
table
->
methods
,
0
,
MEM_RELEASE
);
HeapFree
(
GetProcessHeap
(),
0
,
table
);
}
LeaveCriticalSection
(
&
delegating_vtbl_section
);
...
...
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