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
421b7a17
Commit
421b7a17
authored
Aug 26, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Enforce volume mapping restrictions.
parent
fc36c5eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
volume.c
dlls/d3dx9_36/tests/volume.c
+1
-1
volume.c
dlls/wined3d/volume.c
+7
-0
No files found.
dlls/d3dx9_36/tests/volume.c
View file @
421b7a17
...
...
@@ -184,7 +184,7 @@ static void test_D3DXLoadVolumeFromMemory(IDirect3DDevice9 *device)
set_box
(
&
src_box
,
0
,
0
,
4
,
1
,
0
,
4
);
set_box
(
&
dst_box
,
0
,
0
,
4
,
1
,
0
,
4
);
hr
=
D3DXLoadVolumeFromMemory
(
volume
,
NULL
,
&
dst_box
,
pixels
,
D3DFMT_A8R8G8B8
,
16
,
16
,
NULL
,
&
src_box
,
D3DX_DEFAULT
,
0
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DXLoadVolumeFromMemory returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DXLoadVolumeFromMemory returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
IDirect3DVolume9_Release
(
volume
);
IDirect3DVolumeTexture9_Release
(
volume_texture
);
...
...
dlls/wined3d/volume.c
View file @
421b7a17
...
...
@@ -373,6 +373,13 @@ HRESULT CDECL wined3d_volume_map(struct wined3d_volume *volume,
TRACE
(
"volume %p, map_desc %p, box %p, flags %#x.
\n
"
,
volume
,
map_desc
,
box
,
flags
);
if
(
!
(
volume
->
resource
.
access_flags
&
WINED3D_RESOURCE_ACCESS_CPU
))
{
WARN
(
"Volume %p is not CPU accessible.
\n
"
,
volume
);
map_desc
->
data
=
NULL
;
return
WINED3DERR_INVALIDCALL
;
}
if
(
!
volume_prepare_system_memory
(
volume
))
{
WARN
(
"Out of memory.
\n
"
);
...
...
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