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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
10 deletions
+32
-10
assembly.c
dlls/msi/assembly.c
+32
-10
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
'%'
,
'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'
,
'r'
,
'o'
,
'c'
,
'e'
,
's'
,
's'
,
'o'
,
'r'
,
'A'
,
'r'
,
'c'
,
'h'
,
'i'
,
't'
,
'e'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
'='
,
'%'
,
's'
,
0
};
static
const
WCHAR
fmt_sxs_localW
[]
=
{
'%'
,
's'
,
','
,
' '
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'%'
,
's'
,
','
,
' '
,
'c'
,
'u'
,
'l'
,
't'
,
'u'
,
'r'
,
'e'
,
'='
,
'%'
,
's'
,
','
,
' '
,
'p'
,
'u'
,
'b'
,
'l'
,
'i'
,
'c'
,
'K'
,
'e'
,
'y'
,
'T'
,
'o'
,
'k'
,
'e'
,
'n'
,
'='
,
'%'
,
's'
,
0
};
static
const
WCHAR
queryW
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'M'
,
's'
,
'i'
,
'A'
,
's'
,
's'
,
'e'
,
'm'
,
'b'
,
'l'
,
'y'
,
'N'
,
'a'
,
'm'
,
'e'
,
'`'
,
' '
,
...
...
@@ -198,18 +202,36 @@ static WCHAR *get_assembly_display_name( MSIDATABASE *db, const WCHAR *comp, MSI
if
(
assembly
->
attributes
==
msidbAssemblyAttributesWin32
)
{
if
(
!
name
.
type
||
!
name
.
name
||
!
name
.
version
||
!
name
.
token
||
!
name
.
arch
)
if
(
!
assembly
->
application
)
{
WARN
(
"invalid win32 assembly name
\n
"
);
goto
done
;
if
(
!
name
.
type
||
!
name
.
name
||
!
name
.
version
||
!
name
.
token
||
!
name
.
arch
)
{
WARN
(
"invalid global win32 assembly name
\n
"
);
goto
done
;
}
len
=
strlenW
(
fmt_sxsW
);
len
+=
strlenW
(
name
.
name
);
len
+=
strlenW
(
name
.
version
);
len
+=
strlenW
(
name
.
token
);
len
+=
strlenW
(
name
.
arch
);
if
(
!
(
display_name
=
msi_alloc
(
len
*
sizeof
(
WCHAR
)
)))
goto
done
;
sprintfW
(
display_name
,
fmt_sxsW
,
name
.
name
,
name
.
version
,
name
.
token
,
name
.
arch
);
}
else
{
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
);
}
len
=
strlenW
(
fmt_sxsW
);
len
+=
strlenW
(
name
.
name
);
len
+=
strlenW
(
name
.
version
);
len
+=
strlenW
(
name
.
token
);
len
+=
strlenW
(
name
.
arch
);
if
(
!
(
display_name
=
msi_alloc
(
len
*
sizeof
(
WCHAR
)
)))
goto
done
;
sprintfW
(
display_name
,
fmt_sxsW
,
name
.
name
,
name
.
version
,
name
.
token
,
name
.
arch
);
}
else
{
...
...
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