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
451aff9a
Commit
451aff9a
authored
Oct 09, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add extra constraints on the formatting string of edit path text.
parent
1484c627
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
dialog.c
dlls/msi/dialog.c
+7
-2
No files found.
dlls/msi/dialog.c
View file @
451aff9a
...
...
@@ -1204,12 +1204,15 @@ static UINT msi_dialog_combo_control( msi_dialog *dialog, MSIRECORD *rec )
return
ERROR_SUCCESS
;
}
/* length of 2^32 + 1 */
#define MAX_NUM_DIGITS 11
static
UINT
msi_dialog_edit_control
(
msi_dialog
*
dialog
,
MSIRECORD
*
rec
)
{
msi_control
*
control
;
LPCWSTR
prop
,
text
;
LPWSTR
val
,
begin
,
end
;
WCHAR
num
[
10
];
WCHAR
num
[
MAX_NUM_DIGITS
];
DWORD
limit
;
control
=
msi_dialog_add_control
(
dialog
,
rec
,
szEdit
,
...
...
@@ -1222,7 +1225,9 @@ static UINT msi_dialog_edit_control( msi_dialog *dialog, MSIRECORD *rec )
begin
=
strchrW
(
text
,
'{'
);
end
=
strchrW
(
text
,
'}'
);
if
(
begin
&&
end
&&
end
>
begin
)
if
(
begin
&&
end
&&
end
>
begin
&&
begin
[
0
]
>=
'0'
&&
begin
[
0
]
<=
'9'
&&
end
-
begin
<
MAX_NUM_DIGITS
)
{
lstrcpynW
(
num
,
begin
+
1
,
end
-
begin
);
limit
=
atolW
(
num
);
...
...
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