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
292fd135
Commit
292fd135
authored
Feb 11, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Assign to structs instead of using memcpy.
parent
21b33471
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
api.c
dlls/avifil32/api.c
+2
-2
avifile.c
dlls/avifil32/avifile.c
+1
-1
factory.c
dlls/avifil32/factory.c
+1
-1
getframe.c
dlls/avifil32/getframe.c
+1
-1
wavfile.c
dlls/avifil32/wavfile.c
+1
-1
No files found.
dlls/avifil32/api.c
View file @
292fd135
...
...
@@ -249,7 +249,7 @@ HRESULT WINAPI AVIFileOpenW(PAVIFILE *ppfile, LPCWSTR szFile, UINT uMode,
if
(
!
AVIFILE_GetFileHandlerByExtension
(
szFile
,
&
clsidHandler
))
return
AVIERR_UNSUPPORTED
;
}
else
memcpy
(
&
clsidHandler
,
lpHandler
,
sizeof
(
clsidHandler
))
;
clsidHandler
=
*
lpHandler
;
/* create instance of handler */
hr
=
CoCreateInstance
(
&
clsidHandler
,
NULL
,
CLSCTX_INPROC
,
&
IID_IAVIFile
,
(
LPVOID
*
)
ppfile
);
...
...
@@ -746,7 +746,7 @@ HRESULT WINAPI AVIMakeCompressedStream(PAVISTREAM *ppsCompressed,
if
(
AVIFILE_CLSIDFromString
(
szValue
,
&
clsidHandler
)
!=
S_OK
)
return
AVIERR_UNSUPPORTED
;
}
else
memcpy
(
&
clsidHandler
,
pclsidHandler
,
sizeof
(
clsidHandler
))
;
clsidHandler
=
*
pclsidHandler
;
hr
=
CoCreateInstance
(
&
clsidHandler
,
NULL
,
CLSCTX_INPROC
,
&
IID_IAVIStream
,
(
LPVOID
*
)
ppsCompressed
);
if
(
FAILED
(
hr
)
||
*
ppsCompressed
==
NULL
)
...
...
dlls/avifil32/avifile.c
View file @
292fd135
...
...
@@ -590,7 +590,7 @@ static HRESULT WINAPI IPersistFile_fnGetClassID(IPersistFile *iface,
if
(
pClassID
==
NULL
)
return
AVIERR_BADPARAM
;
memcpy
(
pClassID
,
&
CLSID_AVIFile
,
sizeof
(
CLSID_AVIFile
))
;
*
pClassID
=
CLSID_AVIFile
;
return
AVIERR_OK
;
}
...
...
dlls/avifil32/factory.c
View file @
292fd135
...
...
@@ -78,7 +78,7 @@ static HRESULT AVIFILE_CreateClassFactory(const CLSID *pclsid, const IID *riid,
pClassFactory
->
lpVtbl
=
&
iclassfact
;
pClassFactory
->
dwRef
=
0
;
memcpy
(
&
pClassFactory
->
clsid
,
pclsid
,
sizeof
(
pClassFactory
->
clsid
))
;
pClassFactory
->
clsid
=
*
pclsid
;
hr
=
IClassFactory_QueryInterface
((
IClassFactory
*
)
pClassFactory
,
riid
,
ppv
);
if
(
FAILED
(
hr
))
{
...
...
dlls/avifil32/getframe.c
View file @
292fd135
...
...
@@ -212,7 +212,7 @@ static LPVOID WINAPI IGetFrame_fnGetFrame(IGetFrame *iface, LONG lPos)
if
(
This
->
lpOutFormat
!=
NULL
)
{
BITMAPINFOHEADER
bi
;
memcpy
(
&
bi
,
This
->
lpOutFormat
,
sizeof
(
bi
))
;
bi
=
*
This
->
lpOutFormat
;
AVIFILE_CloseCompressor
(
This
);
if
(
FAILED
(
IGetFrame_SetFormat
(
iface
,
&
bi
,
NULL
,
0
,
0
,
-
1
,
-
1
)))
{
...
...
dlls/avifil32/wavfile.c
View file @
292fd135
...
...
@@ -540,7 +540,7 @@ static HRESULT WINAPI IPersistFile_fnGetClassID(IPersistFile *iface,
if
(
pClassID
==
NULL
)
return
AVIERR_BADPARAM
;
memcpy
(
pClassID
,
&
CLSID_WAVFile
,
sizeof
(
CLSID_WAVFile
))
;
*
pClassID
=
CLSID_WAVFile
;
return
AVIERR_OK
;
}
...
...
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