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
6e4e1ad3
Commit
6e4e1ad3
authored
Aug 21, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly allocate heap memory for volumes.
parent
4dd4a691
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
volume.c
dlls/wined3d/volume.c
+10
-1
No files found.
dlls/wined3d/volume.c
View file @
6e4e1ad3
...
...
@@ -184,7 +184,16 @@ HRESULT CDECL wined3d_volume_map(struct wined3d_volume *volume,
volume
,
map_desc
,
box
,
flags
);
if
(
!
volume
->
resource
.
allocatedMemory
)
volume
->
resource
.
allocatedMemory
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
volume
->
resource
.
size
);
{
volume
->
resource
.
heap_memory
=
wined3d_resource_allocate_sysmem
(
volume
->
resource
.
size
);
if
(
!
volume
->
resource
.
heap_memory
)
{
WARN
(
"Out of memory.
\n
"
);
map_desc
->
data
=
NULL
;
return
E_OUTOFMEMORY
;
}
volume
->
resource
.
allocatedMemory
=
volume
->
resource
.
heap_memory
;
}
TRACE
(
"allocatedMemory %p.
\n
"
,
volume
->
resource
.
allocatedMemory
);
...
...
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