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
477bce38
Commit
477bce38
authored
Jan 16, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Eliminate a fixed length buffer.
parent
f8125a98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
action.c
dlls/msi/action.c
+3
-5
No files found.
dlls/msi/action.c
View file @
477bce38
...
...
@@ -2849,10 +2849,8 @@ static UINT ACTION_RegisterTypeLibraries(MSIPACKAGE *package)
static
UINT
ITERATE_CreateShortcuts
(
MSIRECORD
*
row
,
LPVOID
param
)
{
MSIPACKAGE
*
package
=
(
MSIPACKAGE
*
)
param
;
LPWSTR
target_file
,
target_folder
;
LPWSTR
target_file
,
target_folder
,
filename
;
LPCWSTR
buffer
;
WCHAR
filename
[
0x100
];
DWORD
sz
;
MSICOMPONENT
*
comp
;
static
const
WCHAR
szlnk
[]
=
{
'.'
,
'l'
,
'n'
,
'k'
,
0
};
IShellLinkW
*
sl
;
...
...
@@ -2899,13 +2897,13 @@ static UINT ITERATE_CreateShortcuts(MSIRECORD *row, LPVOID param)
/* may be needed because of a bug somehwere else */
create_full_pathW
(
target_folder
);
sz
=
0x100
;
MSI_RecordGetStringW
(
row
,
3
,
filename
,
&
sz
);
filename
=
msi_dup_record_field
(
row
,
3
);
reduce_to_longfilename
(
filename
);
if
(
!
strchrW
(
filename
,
'.'
)
||
strcmpiW
(
strchrW
(
filename
,
'.'
),
szlnk
))
strcatW
(
filename
,
szlnk
);
target_file
=
build_directory_name
(
2
,
target_folder
,
filename
);
msi_free
(
target_folder
);
msi_free
(
filename
);
buffer
=
MSI_RecordGetString
(
row
,
5
);
if
(
strchrW
(
buffer
,
'['
))
...
...
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