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
f16ddf1b
Commit
f16ddf1b
authored
Oct 03, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Oct 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Only apply the last font style in the list of styles.
parent
971ab9aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
dialog.c
dlls/msi/dialog.c
+20
-16
No files found.
dlls/msi/dialog.c
View file @
f16ddf1b
...
@@ -240,30 +240,34 @@ LPWSTR msi_dialog_get_name( msi_dialog *dialog )
...
@@ -240,30 +240,34 @@ LPWSTR msi_dialog_get_name( msi_dialog *dialog )
* msi_dialog_get_style
* msi_dialog_get_style
*
*
* Extract the {\style} string from the front of the text to display and
* Extract the {\style} string from the front of the text to display and
*
update the pointer
.
*
update the pointer. Only the last style in a list is applied
.
*/
*/
static
LPWSTR
msi_dialog_get_style
(
LPCWSTR
p
,
LPCWSTR
*
rest
)
static
LPWSTR
msi_dialog_get_style
(
LPCWSTR
p
,
LPCWSTR
*
rest
)
{
{
LPWSTR
ret
=
NULL
;
LPWSTR
ret
;
LPCWSTR
q
,
i
;
LPCWSTR
q
,
i
,
first
;
DWORD
len
;
DWORD
len
;
q
=
NULL
;
*
rest
=
p
;
*
rest
=
p
;
if
(
!
p
)
if
(
!
p
)
return
ret
;
return
NULL
;
if
(
*
p
++
!=
'{'
)
return
ret
;
while
((
first
=
strchrW
(
p
,
'{'
))
&&
(
q
=
strchrW
(
first
+
1
,
'}'
)))
q
=
strchrW
(
p
,
'}'
);
{
if
(
!
q
)
p
=
first
+
1
;
return
ret
;
if
(
*
p
==
'\\'
||
*
p
==
'&'
)
if
(
*
p
==
'\\'
||
*
p
==
'&'
)
p
++
;
p
++
;
/* little bit of sanity checking to stop us getting confused with RTF */
for
(
i
=
p
;
i
<
q
;
i
++
)
if
(
*
i
==
'}'
||
*
i
==
'\\'
)
return
NULL
;
}
if
(
!
p
||
!
q
)
return
NULL
;
/* little bit of sanity checking to stop us getting confused with RTF */
for
(
i
=
p
;
i
<
q
;
i
++
)
if
(
*
i
==
'}'
||
*
i
==
'\\'
)
return
ret
;
*
rest
=
++
q
;
*
rest
=
++
q
;
len
=
q
-
p
;
len
=
q
-
p
;
...
...
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