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
5f9dd9df
Commit
5f9dd9df
authored
Dec 23, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Global and local win32 assembly names are formatted differently.
parent
9e30f775
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
assembly.c
dlls/msi/assembly.c
+23
-1
No files found.
dlls/msi/assembly.c
View file @
5f9dd9df
...
@@ -176,6 +176,10 @@ static WCHAR *get_assembly_display_name( MSIDATABASE *db, const WCHAR *comp, MSI
...
@@ -176,6 +176,10 @@ static WCHAR *get_assembly_display_name( MSIDATABASE *db, const WCHAR *comp, MSI
'%'
,
's'
,
','
,
' '
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'%'
,
's'
,
','
,
' '
,
'%'
,
's'
,
','
,
' '
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'%'
,
's'
,
','
,
' '
,
'p'
,
'u'
,
'b'
,
'l'
,
'i'
,
'c'
,
'K'
,
'e'
,
'y'
,
'T'
,
'o'
,
'k'
,
'e'
,
'n'
,
'='
,
'%'
,
's'
,
','
,
' '
,
'p'
,
'u'
,
'b'
,
'l'
,
'i'
,
'c'
,
'K'
,
'e'
,
'y'
,
'T'
,
'o'
,
'k'
,
'e'
,
'n'
,
'='
,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R *get_assembly_display_name( MSIDATABASE *db, const WCHAR *comp, MSI
...
@@ -198,9 +202,11 @@ static WCHAR *get_assembly_display_name( MSIDATABASE *db, const WCHAR *comp, MSI
if
(
assembly
->
attributes
==
msidbAssemblyAttributesWin32
)
if
(
assembly
->
attributes
==
msidbAssemblyAttributesWin32
)
{
{
if
(
!
assembly
->
application
)
{
if
(
!
name
.
type
||
!
name
.
name
||
!
name
.
version
||
!
name
.
token
||
!
name
.
arch
)
if
(
!
name
.
type
||
!
name
.
name
||
!
name
.
version
||
!
name
.
token
||
!
name
.
arch
)
{
{
WARN
(
"invalid
win32 assembly name
\n
"
);
WARN
(
"invalid global
win32 assembly name
\n
"
);
goto
done
;
goto
done
;
}
}
len
=
strlenW
(
fmt_sxsW
);
len
=
strlenW
(
fmt_sxsW
);
...
@@ -215,6 +221,22 @@ static WCHAR *get_assembly_display_name( MSIDATABASE *db, const WCHAR *comp, MSI
...
@@ -215,6 +221,22 @@ static WCHAR *get_assembly_display_name( MSIDATABASE *db, const WCHAR *comp, MSI
{
{
if
(
!
name
.
name
||
!
name
.
version
||
!
name
.
culture
||
!
name
.
token
)
if
(
!
name
.
name
||
!
name
.
version
||
!
name
.
culture
||
!
name
.
token
)
{
{
WARN
(
"invalid local win32 assembly name
\n
"
);
goto
done
;
}
len
=
strlenW
(
fmt_sxs_localW
);
len
+=
strlenW
(
name
.
name
);
len
+=
strlenW
(
name
.
version
);
len
+=
strlenW
(
name
.
culture
);
len
+=
strlenW
(
name
.
token
);
if
(
!
(
display_name
=
msi_alloc
(
len
*
sizeof
(
WCHAR
)
)))
goto
done
;
sprintfW
(
display_name
,
fmt_sxs_localW
,
name
.
name
,
name
.
version
,
name
.
culture
,
name
.
token
);
}
}
else
{
if
(
!
name
.
name
||
!
name
.
version
||
!
name
.
culture
||
!
name
.
token
)
{
WARN
(
"invalid assembly name
\n
"
);
WARN
(
"invalid assembly name
\n
"
);
goto
done
;
goto
done
;
}
}
...
...
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