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
2a55b09b
Commit
2a55b09b
authored
Oct 18, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directshow: Removed bad sizeof in copy/pasted code (Coverity).
parent
230f63c3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
16 deletions
+16
-16
band.c
dlls/dmband/band.c
+1
-1
chordmap.c
dlls/dmcompos/chordmap.c
+1
-1
audiopath.c
dlls/dmime/audiopath.c
+2
-2
graph.c
dlls/dmime/graph.c
+2
-2
segment.c
dlls/dmime/segment.c
+2
-2
script.c
dlls/dmscript/script.c
+2
-2
style.c
dlls/dmstyle/style.c
+2
-2
collection.c
dlls/dmusic/collection.c
+2
-2
dswave.c
dlls/dswave/dswave.c
+2
-2
No files found.
dlls/dmband/band.c
View file @
2a55b09b
...
...
@@ -173,7 +173,7 @@ static HRESULT WINAPI IDirectMusicBandImpl_IDirectMusicObject_SetDescriptor (LPD
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
dlls/dmcompos/chordmap.c
View file @
2a55b09b
...
...
@@ -163,7 +163,7 @@ static HRESULT WINAPI IDirectMusicChordMapImpl_IDirectMusicObject_SetDescriptor
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
dlls/dmime/audiopath.c
View file @
2a55b09b
...
...
@@ -272,8 +272,8 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_IDirectMusicObject_SetDescriptor
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_DATE
)
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
memcpy
(
&
This
->
pDesc
->
llMemLength
,
&
pDesc
->
llMemLength
,
sizeof
(
pDesc
->
llMemLength
));
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
dlls/dmime/graph.c
View file @
2a55b09b
...
...
@@ -237,8 +237,8 @@ static HRESULT WINAPI IDirectMusicGraphImpl_IDirectMusicObject_SetDescriptor (LP
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_DATE
)
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
memcpy
(
&
This
->
pDesc
->
llMemLength
,
&
pDesc
->
llMemLength
,
sizeof
(
pDesc
->
llMemLength
));
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
dlls/dmime/segment.c
View file @
2a55b09b
...
...
@@ -563,8 +563,8 @@ static HRESULT WINAPI IDirectMusicSegment8Impl_IDirectMusicObject_SetDescriptor
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_DATE
)
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
memcpy
(
&
This
->
pDesc
->
llMemLength
,
&
pDesc
->
llMemLength
,
sizeof
(
pDesc
->
llMemLength
));
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
dlls/dmscript/script.c
View file @
2a55b09b
...
...
@@ -241,8 +241,8 @@ static HRESULT WINAPI IDirectMusicScriptImpl_IDirectMusicObject_SetDescriptor (L
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_DATE
)
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
memcpy
(
&
This
->
pDesc
->
llMemLength
,
&
pDesc
->
llMemLength
,
sizeof
(
pDesc
->
llMemLength
));
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
dlls/dmstyle/style.c
View file @
2a55b09b
...
...
@@ -245,8 +245,8 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_IDirectMusicObject_SetDescriptor (L
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_DATE
)
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
memcpy
(
&
This
->
pDesc
->
llMemLength
,
&
pDesc
->
llMemLength
,
sizeof
(
pDesc
->
llMemLength
));
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
dlls/dmusic/collection.c
View file @
2a55b09b
...
...
@@ -209,8 +209,8 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_SetDescripto
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_DATE
)
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
memcpy
(
&
This
->
pDesc
->
llMemLength
,
&
pDesc
->
llMemLength
,
sizeof
(
pDesc
->
llMemLength
));
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
dlls/dswave/dswave.c
View file @
2a55b09b
...
...
@@ -361,8 +361,8 @@ static HRESULT WINAPI IDirectMusicWaveImpl_IDirectMusicObject_SetDescriptor (LPD
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_DATE
)
This
->
pDesc
->
ftDate
=
pDesc
->
ftDate
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
memcpy
(
&
This
->
pDesc
->
llMemLength
,
&
pDesc
->
llMemLength
,
sizeof
(
pDesc
->
llMemLength
));
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
sizeof
(
pDesc
->
pbMemData
)
);
This
->
pDesc
->
llMemLength
=
pDesc
->
llMemLength
;
memcpy
(
This
->
pDesc
->
pbMemData
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
);
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* according to MSDN, we copy the stream */
...
...
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