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
0e14c29d
Commit
0e14c29d
authored
Jul 23, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Cast-qual warning fix.
parent
94e08ec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
action.c
dlls/msi/action.c
+7
-4
No files found.
dlls/msi/action.c
View file @
0e14c29d
...
...
@@ -630,22 +630,26 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
if
(
szPackagePath
)
{
LPWSTR
p
,
check
,
dir
;
LPCWSTR
file
;
dir
=
strdupW
(
szPackagePath
);
p
=
strrchrW
(
dir
,
'\\'
);
if
(
p
)
{
*
(
++
p
)
=
0
;
file
=
szPackagePath
+
(
p
-
dir
);
}
else
{
msi_free
(
dir
);
dir
=
msi_alloc
(
MAX_PATH
*
sizeof
(
WCHAR
));
GetCurrentDirectoryW
(
MAX_PATH
,
dir
);
lstrcatW
(
dir
,
cszbs
);
p
=
(
LPWSTR
)
szPackagePath
;
file
=
szPackagePath
;
}
msi_free
(
package
->
PackagePath
);
package
->
PackagePath
=
msi_alloc
((
lstrlenW
(
dir
)
+
lstrlenW
(
p
)
+
2
)
*
sizeof
(
WCHAR
));
package
->
PackagePath
=
msi_alloc
((
lstrlenW
(
dir
)
+
lstrlenW
(
file
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
package
->
PackagePath
)
{
msi_free
(
dir
);
...
...
@@ -653,8 +657,7 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
}
lstrcpyW
(
package
->
PackagePath
,
dir
);
lstrcatW
(
package
->
PackagePath
,
cszbs
);
lstrcatW
(
package
->
PackagePath
,
p
);
lstrcatW
(
package
->
PackagePath
,
file
);
check
=
msi_dup_property
(
package
,
cszSourceDir
);
if
(
!
check
)
...
...
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