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
6661f434
Commit
6661f434
authored
Mar 06, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Assign to structs instead of using memcpy.
parent
d52f48fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
suminfo.c
dlls/msi/suminfo.c
+4
-4
table.c
dlls/msi/table.c
+1
-1
No files found.
dlls/msi/suminfo.c
View file @
6661f434
...
...
@@ -232,7 +232,7 @@ static void read_properties_from_data( PROPVARIANT *prop, LPBYTE data, DWORD sz
else
ptr
=
&
property
;
memcpy
(
&
prop
[
idofs
[
i
].
propid
],
ptr
,
sizeof
(
PROPVARIANT
))
;
prop
[
idofs
[
i
].
propid
]
=
*
ptr
;
}
}
...
...
@@ -387,7 +387,7 @@ static UINT save_summary_info( const MSISUMMARYINFO * si, IStream *stm )
/* write the format header */
sz
=
sizeof
format_hdr
;
memcpy
(
&
format_hdr
.
fmtid
,
&
FMTID_SummaryInformation
,
sizeof
(
FMTID
)
)
;
format_hdr
.
fmtid
=
FMTID_SummaryInformation
;
format_hdr
.
dwOffset
=
sizeof
format_hdr
+
sizeof
set_hdr
;
r
=
IStream_Write
(
stm
,
&
format_hdr
,
sz
,
&
count
);
if
(
FAILED
(
r
)
||
count
!=
sz
)
...
...
@@ -624,7 +624,7 @@ static UINT get_prop( MSIHANDLE handle, UINT uiProperty, UINT *puiDataType,
break
;
case
VT_FILETIME
:
if
(
pftValue
)
memcpy
(
pftValue
,
&
prop
->
u
.
filetime
,
sizeof
(
FILETIME
)
)
;
*
pftValue
=
prop
->
u
.
filetime
;
break
;
case
VT_EMPTY
:
break
;
...
...
@@ -745,7 +745,7 @@ static UINT set_prop( MSIHANDLE handle, UINT uiProperty, UINT uiDataType,
prop
->
u
.
iVal
=
iValue
;
break
;
case
VT_FILETIME
:
memcpy
(
&
prop
->
u
.
filetime
,
pftValue
,
sizeof
prop
->
u
.
filetime
)
;
prop
->
u
.
filetime
=
*
pftValue
;
break
;
case
VT_LPSTR
:
if
(
str
->
unicode
)
...
...
dlls/msi/table.c
View file @
6661f434
...
...
@@ -923,7 +923,7 @@ static UINT get_defaulttablecolumns( LPCWSTR name, MSICOLUMNINFO *colinfo, UINT
{
if
(
colinfo
&&
(
i
<
*
sz
)
)
{
memcpy
(
&
colinfo
[
i
],
&
p
[
i
],
sizeof
(
MSICOLUMNINFO
)
)
;
colinfo
[
i
]
=
p
[
i
]
;
colinfo
[
i
].
tablename
=
strdupW
(
p
[
i
].
tablename
);
colinfo
[
i
].
colname
=
strdupW
(
p
[
i
].
colname
);
}
...
...
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