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
6083fd5e
Commit
6083fd5e
authored
Jul 07, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Check the transform language against the package language instead of the system language.
parent
537a5932
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
patch.c
dlls/msi/patch.c
+15
-11
No files found.
dlls/msi/patch.c
View file @
6083fd5e
...
@@ -32,11 +32,21 @@
...
@@ -32,11 +32,21 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
static
BOOL
match_language
(
MSIPACKAGE
*
package
,
LANGID
langid
)
{
UINT
i
;
if
(
!
package
->
num_langids
||
!
langid
)
return
TRUE
;
for
(
i
=
0
;
i
<
package
->
num_langids
;
i
++
)
{
if
(
package
->
langids
[
i
]
==
langid
)
return
TRUE
;
}
return
FALSE
;
}
static
UINT
check_transform_applicable
(
MSIPACKAGE
*
package
,
IStorage
*
patch
)
static
UINT
check_transform_applicable
(
MSIPACKAGE
*
package
,
IStorage
*
patch
)
{
{
static
const
WCHAR
szSystemLanguageID
[]
=
{
LPWSTR
prod_code
,
patch_product
,
template
=
NULL
;
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'L'
,
'a'
,
'n'
,
'g'
,
'u'
,
'a'
,
'g'
,
'e'
,
'I'
,
'D'
,
0
};
LPWSTR
prod_code
,
patch_product
,
langid
=
NULL
,
template
=
NULL
;
UINT
ret
=
ERROR_FUNCTION_FAILED
;
UINT
ret
=
ERROR_FUNCTION_FAILED
;
prod_code
=
msi_dup_property
(
package
->
db
,
szProductCode
);
prod_code
=
msi_dup_property
(
package
->
db
,
szProductCode
);
...
@@ -68,14 +78,9 @@ static UINT check_transform_applicable( MSIPACKAGE *package, IStorage *patch )
...
@@ -68,14 +78,9 @@ static UINT check_transform_applicable( MSIPACKAGE *package, IStorage *patch )
msiobj_release
(
&
si
->
hdr
);
msiobj_release
(
&
si
->
hdr
);
goto
end
;
goto
end
;
}
}
langid
=
msi_dup_property
(
package
->
db
,
szSystemLanguageID
);
TRACE
(
"template: %s
\n
"
,
debugstr_w
(
template
));
if
(
!
langid
)
{
msiobj_release
(
&
si
->
hdr
);
goto
end
;
}
p
=
strchrW
(
template
,
';'
);
p
=
strchrW
(
template
,
';'
);
if
(
p
&&
(
!
strcmpW
(
p
+
1
,
langid
)
||
!
strcmpW
(
p
+
1
,
szZero
)
))
if
(
p
&&
match_language
(
package
,
atoiW
(
p
+
1
)
))
{
{
TRACE
(
"applicable transform
\n
"
);
TRACE
(
"applicable transform
\n
"
);
ret
=
ERROR_SUCCESS
;
ret
=
ERROR_SUCCESS
;
...
@@ -88,7 +93,6 @@ end:
...
@@ -88,7 +93,6 @@ end:
msi_free
(
patch_product
);
msi_free
(
patch_product
);
msi_free
(
prod_code
);
msi_free
(
prod_code
);
msi_free
(
template
);
msi_free
(
template
);
msi_free
(
langid
);
return
ret
;
return
ret
;
}
}
...
...
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