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
3754cdd7
Commit
3754cdd7
authored
Mar 12, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Correctly handle the size parameter in get_private_data.
parent
3d09d1a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
resource.c
dlls/wined3d/resource.c
+9
-6
No files found.
dlls/wined3d/resource.c
View file @
3754cdd7
...
...
@@ -250,18 +250,21 @@ HRESULT CDECL wined3d_resource_get_private_data(const struct wined3d_resource *r
void
*
data
,
DWORD
*
data_size
)
{
const
struct
private_data
*
d
;
DWORD
size_in
;
TRACE
(
"resource %p, guid %s, data %p, data_size %p.
\n
"
,
resource
,
debugstr_guid
(
guid
),
data
,
data_size
);
d
=
resource_find_private_data
(
resource
,
guid
);
if
(
!
d
)
return
WINED3DERR_NOTFOUND
;
if
(
*
data_size
<
d
->
size
)
{
*
data_size
=
d
->
size
;
if
(
!
d
)
return
WINED3DERR_NOTFOUND
;
size_in
=
*
data_size
;
*
data_size
=
d
->
size
;
if
(
!
data
)
return
WINED3D_OK
;
if
(
size_in
<
d
->
size
)
return
WINED3DERR_MOREDATA
;
}
if
(
d
->
flags
&
WINED3DSPD_IUNKNOWN
)
{
...
...
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