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
062070bf
Commit
062070bf
authored
Jan 05, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: SourceDir is formed from the path of OriginalDatabase.
parent
781e19aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
action.c
dlls/msi/action.c
+14
-6
No files found.
dlls/msi/action.c
View file @
062070bf
...
...
@@ -60,6 +60,8 @@ static UINT ACTION_PerformActionSequence(MSIPACKAGE *package, UINT seq, BOOL UI)
* consts and values used
*/
static
const
WCHAR
c_colon
[]
=
{
'C'
,
':'
,
'\\'
,
0
};
static
const
WCHAR
szOriginalDatabase
[]
=
{
'O'
,
'r'
,
'i'
,
'g'
,
'i'
,
'n'
,
'a'
,
'l'
,
'D'
,
'a'
,
't'
,
'a'
,
'b'
,
'a'
,
's'
,
'e'
,
0
};
static
const
WCHAR
szCreateFolders
[]
=
{
'C'
,
'r'
,
'e'
,
'a'
,
't'
,
'e'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
's'
,
0
};
...
...
@@ -610,17 +612,24 @@ BOOL ui_sequence_exists( MSIPACKAGE *package )
static
UINT
msi_set_sourcedir_props
(
MSIPACKAGE
*
package
,
BOOL
replace
)
{
LPWSTR
p
;
LPWSTR
p
,
db
;
LPWSTR
source
,
check
;
DWORD
len
;
p
=
strrchrW
(
package
->
PackagePath
,
'\\'
);
db
=
msi_dup_property
(
package
,
szOriginalDatabase
);
if
(
!
db
)
return
ERROR_OUTOFMEMORY
;
p
=
strrchrW
(
db
,
'\\'
);
if
(
!
p
)
{
msi_free
(
db
);
return
ERROR_SUCCESS
;
}
len
=
p
-
package
->
PackagePath
+
2
;
len
=
p
-
db
+
2
;
source
=
msi_alloc
(
len
*
sizeof
(
WCHAR
)
);
lstrcpynW
(
source
,
package
->
PackagePath
,
len
);
lstrcpynW
(
source
,
db
,
len
);
check
=
msi_dup_property
(
package
,
cszSourceDir
);
if
(
!
check
||
replace
)
...
...
@@ -634,6 +643,7 @@ static UINT msi_set_sourcedir_props(MSIPACKAGE *package, BOOL replace)
msi_free
(
check
);
msi_free
(
source
);
msi_free
(
db
);
return
ERROR_SUCCESS
;
}
...
...
@@ -3872,8 +3882,6 @@ static UINT msi_get_local_package_name( LPWSTR path )
static
UINT
msi_make_package_local
(
MSIPACKAGE
*
package
,
HKEY
hkey
)
{
static
const
WCHAR
szOriginalDatabase
[]
=
{
'O'
,
'r'
,
'i'
,
'g'
,
'i'
,
'n'
,
'a'
,
'l'
,
'D'
,
'a'
,
't'
,
'a'
,
'b'
,
'a'
,
's'
,
'e'
,
0
};
WCHAR
packagefile
[
MAX_PATH
];
LPWSTR
msiFilePath
;
HKEY
props
;
...
...
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