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
5c121226
Commit
5c121226
authored
Sep 08, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allocate memory rather than using fixed length buffers.
parent
0232c5c4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
action.c
dlls/msi/action.c
+2
-7
action.h
dlls/msi/action.h
+2
-2
helpers.c
dlls/msi/helpers.c
+2
-0
No files found.
dlls/msi/action.c
View file @
5c121226
...
...
@@ -1110,13 +1110,8 @@ static UINT load_feature(MSIRECORD * row, LPVOID param)
if
(
!
MSI_RecordIsNull
(
row
,
2
))
MSI_RecordGetStringW
(
row
,
2
,
feature
->
Feature_Parent
,
&
sz
);
sz
=
0x100
;
if
(
!
MSI_RecordIsNull
(
row
,
3
))
MSI_RecordGetStringW
(
row
,
3
,
feature
->
Title
,
&
sz
);
sz
=
0x100
;
if
(
!
MSI_RecordIsNull
(
row
,
4
))
MSI_RecordGetStringW
(
row
,
4
,
feature
->
Description
,
&
sz
);
feature
->
Title
=
load_dynamic_stringW
(
row
,
3
);
feature
->
Description
=
load_dynamic_stringW
(
row
,
4
);
if
(
!
MSI_RecordIsNull
(
row
,
5
))
feature
->
Display
=
MSI_RecordGetInteger
(
row
,
5
);
...
...
dlls/msi/action.h
View file @
5c121226
...
...
@@ -30,8 +30,8 @@ typedef struct tagMSIFEATURE
struct
list
entry
;
WCHAR
Feature
[
IDENTIFIER_SIZE
];
WCHAR
Feature_Parent
[
IDENTIFIER_SIZE
];
WCHAR
Title
[
0x100
]
;
WCHAR
Description
[
0x100
]
;
LPWSTR
Title
;
LPWSTR
Description
;
INT
Display
;
INT
Level
;
WCHAR
Directory
[
IDENTIFIER_SIZE
];
...
...
dlls/msi/helpers.c
View file @
5c121226
...
...
@@ -438,6 +438,8 @@ static void free_feature( MSIFEATURE *feature )
list_remove
(
&
cl
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
cl
);
}
HeapFree
(
GetProcessHeap
(),
0
,
feature
->
Description
);
HeapFree
(
GetProcessHeap
(),
0
,
feature
->
Title
);
HeapFree
(
GetProcessHeap
(),
0
,
feature
);
}
...
...
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