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
933fd8b8
Commit
933fd8b8
authored
May 06, 2007
by
James Hawkins
Committed by
Alexandre Julliard
May 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set the text limit of the edit control if the limit is given.
parent
7fe3ba93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
dialog.c
dlls/msi/dialog.c
+21
-2
No files found.
dlls/msi/dialog.c
View file @
933fd8b8
...
...
@@ -1142,15 +1142,34 @@ static UINT msi_dialog_combo_control( msi_dialog *dialog, MSIRECORD *rec )
static
UINT
msi_dialog_edit_control
(
msi_dialog
*
dialog
,
MSIRECORD
*
rec
)
{
msi_control
*
control
;
LPCWSTR
prop
;
LPWSTR
val
;
LPCWSTR
prop
,
text
;
LPWSTR
val
,
begin
,
end
;
WCHAR
num
[
10
];
DWORD
limit
;
control
=
msi_dialog_add_control
(
dialog
,
rec
,
szEdit
,
WS_BORDER
|
WS_TABSTOP
|
ES_AUTOHSCROLL
);
control
->
handler
=
msi_dialog_edit_handler
;
text
=
MSI_RecordGetString
(
rec
,
10
);
if
(
text
)
{
begin
=
strchrW
(
text
,
'{'
);
end
=
strchrW
(
text
,
'}'
);
if
(
begin
&&
end
&&
end
>
begin
)
{
lstrcpynW
(
num
,
begin
+
1
,
end
-
begin
);
limit
=
atolW
(
num
);
SendMessageW
(
control
->
hwnd
,
EM_SETLIMITTEXT
,
limit
,
0
);
}
}
prop
=
MSI_RecordGetString
(
rec
,
9
);
if
(
prop
)
control
->
property
=
strdupW
(
prop
);
val
=
msi_dup_property
(
dialog
->
package
,
control
->
property
);
SetWindowTextW
(
control
->
hwnd
,
val
);
msi_free
(
val
);
...
...
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