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
b921118f
Commit
b921118f
authored
Nov 20, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Split msi_set_sourcedir_props into a separate function.
parent
fc564239
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
action.c
dlls/msi/action.c
+23
-14
No files found.
dlls/msi/action.c
View file @
b921118f
...
...
@@ -3851,10 +3851,30 @@ static UINT ACTION_ForceReboot(MSIPACKAGE *package)
return
ERROR_INSTALL_SUSPEND
;
}
UINT
msi_set_sourcedir_props
(
MSIPACKAGE
*
package
)
{
LPWSTR
p
,
source
;
DWORD
len
;
p
=
strrchrW
(
package
->
PackagePath
,
'\\'
);
if
(
!
p
)
return
ERROR_SUCCESS
;
len
=
p
-
package
->
PackagePath
+
2
;
source
=
msi_alloc
(
len
*
sizeof
(
WCHAR
)
);
lstrcpynW
(
source
,
package
->
PackagePath
,
len
);
MSI_SetPropertyW
(
package
,
cszSourceDir
,
source
);
MSI_SetPropertyW
(
package
,
cszSOURCEDIR
,
source
);
msi_free
(
source
);
return
ERROR_SUCCESS
;
}
static
UINT
ACTION_ResolveSource
(
MSIPACKAGE
*
package
)
{
DWORD
attrib
,
len
;
LPWSTR
ptr
,
source
;
DWORD
attrib
;
UINT
rc
;
/*
...
...
@@ -3864,18 +3884,7 @@ static UINT ACTION_ResolveSource(MSIPACKAGE* package)
if
(
!
package
->
PackagePath
)
return
ERROR_SUCCESS
;
ptr
=
strrchrW
(
package
->
PackagePath
,
'\\'
);
if
(
!
ptr
)
return
ERROR_SUCCESS
;
len
=
ptr
-
package
->
PackagePath
+
2
;
source
=
msi_alloc
(
len
*
sizeof
(
WCHAR
));
lstrcpynW
(
source
,
package
->
PackagePath
,
len
);
MSI_SetPropertyW
(
package
,
cszSourceDir
,
source
);
MSI_SetPropertyW
(
package
,
cszSOURCEDIR
,
source
);
msi_free
(
source
);
msi_set_sourcedir_props
(
package
);
attrib
=
GetFileAttributesW
(
package
->
PackagePath
);
if
(
attrib
==
INVALID_FILE_ATTRIBUTES
)
...
...
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