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
af759e30
Commit
af759e30
authored
Oct 01, 2013
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Ensure that wined3d_cs_st_require_space allocates the required space.
parent
fabffe2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cs.c
dlls/wined3d/cs.c
+3
-2
No files found.
dlls/wined3d/cs.c
View file @
af759e30
...
...
@@ -374,10 +374,11 @@ static void *wined3d_cs_st_require_space(struct wined3d_cs *cs, size_t size)
{
void
*
new_data
;
if
(
!
(
new_data
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
cs
->
data
,
cs
->
data_size
*
2
)))
size
=
max
(
size
,
cs
->
data_size
*
2
);
if
(
!
(
new_data
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
cs
->
data
,
size
)))
return
NULL
;
cs
->
data_size
*=
2
;
cs
->
data_size
=
size
;
cs
->
data
=
new_data
;
}
...
...
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