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
3a94011a
Commit
3a94011a
authored
Apr 19, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Clean up memset usage.
parent
edb58a6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
20 deletions
+16
-20
action.c
dlls/msi/action.c
+4
-7
classes.c
dlls/msi/classes.c
+1
-2
msi.c
dlls/msi/msi.c
+11
-11
No files found.
dlls/msi/action.c
View file @
3a94011a
...
...
@@ -573,8 +573,7 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
MSI_SetPropertyW
(
package
,
szAction
,
szInstall
);
package
->
script
=
msi_alloc
(
sizeof
(
MSISCRIPT
));
memset
(
package
->
script
,
0
,
sizeof
(
MSISCRIPT
));
package
->
script
=
msi_alloc_zero
(
sizeof
(
MSISCRIPT
));
package
->
script
->
InWhatSequence
=
SEQUENCE_INSTALL
;
...
...
@@ -3383,7 +3382,7 @@ static UINT ACTION_PublishFeatures(MSIPACKAGE *package)
MSICOMPONENT
*
component
=
cl
->
component
;
WCHAR
buf
[
21
];
memset
(
buf
,
0
,
sizeof
(
buf
))
;
buf
[
0
]
=
0
;
if
(
component
->
ComponentId
)
{
TRACE
(
"From %s
\n
"
,
debugstr_w
(
component
->
ComponentId
));
...
...
@@ -3914,8 +3913,7 @@ static LPWSTR load_ttfname_from(LPCWSTR filename)
ttRecord
.
uStringOffset
+
ttNTHeader
.
uStorageOffset
,
NULL
,
FILE_BEGIN
);
buf
=
msi_alloc
(
ttRecord
.
uStringLength
+
1
+
strlen
(
tt
)
);
memset
(
buf
,
0
,
ttRecord
.
uStringLength
+
1
+
strlen
(
tt
));
buf
=
msi_alloc_zero
(
ttRecord
.
uStringLength
+
1
+
strlen
(
tt
)
);
ReadFile
(
handle
,
buf
,
ttRecord
.
uStringLength
,
&
dwRead
,
NULL
);
if
(
strlen
(
buf
)
>
0
)
{
...
...
@@ -4080,8 +4078,7 @@ static UINT ITERATE_PublishComponent(MSIRECORD *rec, LPVOID param)
sz
+=
3
;
sz
*=
sizeof
(
WCHAR
);
output
=
msi_alloc
(
sz
);
memset
(
output
,
0
,
sz
);
output
=
msi_alloc_zero
(
sz
);
strcpyW
(
output
,
advertise
);
msi_free
(
advertise
);
...
...
dlls/msi/classes.c
View file @
3a94011a
...
...
@@ -1160,8 +1160,7 @@ static UINT register_verb(MSIPACKAGE *package, LPCWSTR progid,
size
+=
strlenW
(
verb
->
Argument
);
size
+=
4
;
command
=
msi_alloc
(
size
*
sizeof
(
WCHAR
));
memset
(
command
,
0
,
size
*
sizeof
(
WCHAR
));
command
=
msi_alloc_zero
(
size
*
sizeof
(
WCHAR
));
strcpyW
(
command
,
advertise
);
if
(
verb
->
Argument
)
...
...
dlls/msi/msi.c
View file @
3a94011a
...
...
@@ -1891,29 +1891,29 @@ UINT WINAPI MsiReinstallFeatureW( LPCWSTR szProduct, LPCWSTR szFeature,
FIXME
(
"%s %s %li
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szFeature
),
dwReinstallMode
);
memset
(
reinstallmode
,
0
,
sizeof
(
reinstallmode
));
ptr
=
reinstallmode
;
if
(
dwReinstallMode
&
REINSTALLMODE_FILEMISSING
)
{
*
ptr
=
'p'
;
ptr
++
;
}
*
ptr
++
=
'p'
;
if
(
dwReinstallMode
&
REINSTALLMODE_FILEOLDERVERSION
)
{
*
ptr
=
'o'
;
ptr
++
;
}
*
ptr
++
=
'o'
;
if
(
dwReinstallMode
&
REINSTALLMODE_FILEEQUALVERSION
)
{
*
ptr
=
'w'
;
ptr
++
;
}
*
ptr
++
=
'w'
;
if
(
dwReinstallMode
&
REINSTALLMODE_FILEEXACT
)
{
*
ptr
=
'd'
;
ptr
++
;
}
*
ptr
++
=
'd'
;
if
(
dwReinstallMode
&
REINSTALLMODE_FILEVERIFY
)
{
*
ptr
=
'c'
;
ptr
++
;
}
*
ptr
++
=
'c'
;
if
(
dwReinstallMode
&
REINSTALLMODE_FILEREPLACE
)
{
*
ptr
=
'a'
;
ptr
++
;
}
*
ptr
++
=
'a'
;
if
(
dwReinstallMode
&
REINSTALLMODE_USERDATA
)
{
*
ptr
=
'u'
;
ptr
++
;
}
*
ptr
++
=
'u'
;
if
(
dwReinstallMode
&
REINSTALLMODE_MACHINEDATA
)
{
*
ptr
=
'm'
;
ptr
++
;
}
*
ptr
++
=
'm'
;
if
(
dwReinstallMode
&
REINSTALLMODE_SHORTCUT
)
{
*
ptr
=
's'
;
ptr
++
;
}
*
ptr
++
=
's'
;
if
(
dwReinstallMode
&
REINSTALLMODE_PACKAGE
)
{
*
ptr
=
'v'
;
ptr
++
;
}
*
ptr
++
=
'v'
;
*
ptr
=
0
;
sz
=
sizeof
(
sourcepath
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
...
...
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