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
00591095
Commit
00591095
authored
Feb 07, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Feb 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Fix initial allocation (Valgrind).
parent
03c29bf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
compiler.c
dlls/d3dcompiler_43/compiler.c
+2
-2
No files found.
dlls/d3dcompiler_43/compiler.c
View file @
00591095
...
...
@@ -206,13 +206,13 @@ static void *wpp_open_mem(const char *filename, int type)
{
if
(
includes_capacity
==
0
)
{
includes
=
HeapAlloc
(
GetProcessHeap
(),
0
,
INCLUDES_INITIAL_CAPACITY
);
includes
=
HeapAlloc
(
GetProcessHeap
(),
0
,
INCLUDES_INITIAL_CAPACITY
*
sizeof
(
*
includes
)
);
if
(
includes
==
NULL
)
{
ERR
(
"Error allocating memory for the loaded includes structure
\n
"
);
goto
error
;
}
includes_capacity
=
INCLUDES_INITIAL_CAPACITY
;
includes_capacity
=
INCLUDES_INITIAL_CAPACITY
*
sizeof
(
*
includes
)
;
}
else
{
...
...
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