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
d436ea95
Commit
d436ea95
authored
Feb 05, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qedit: Use offsetof for the size of a struct with a varlen array.
parent
183bd439
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
samplegrabber.c
dlls/qedit/samplegrabber.c
+2
-2
No files found.
dlls/qedit/samplegrabber.c
View file @
d436ea95
...
...
@@ -46,7 +46,7 @@ typedef struct _PE_Impl {
LONG
refCount
;
ULONG
numPins
;
ULONG
index
;
IPin
*
pins
[
0
];
IPin
*
pins
[
1
];
}
PE_Impl
;
...
...
@@ -174,7 +174,7 @@ static const IEnumPinsVtbl IEnumPins_VTable =
static
IEnumPins
*
pinsenum_create
(
IBaseFilter
*
filter
,
IPin
**
pins
,
ULONG
pinCount
)
{
PE_Impl
*
obj
;
ULONG
len
=
sizeof
(
PE_Impl
)
+
(
pinCount
*
sizeof
(
IPin
*
)
);
ULONG
len
=
offsetof
(
PE_Impl
,
pins
[
pinCount
]
);
ULONG
i
;
obj
=
CoTaskMemAlloc
(
len
);
...
...
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