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
98d9cec7
Commit
98d9cec7
authored
May 18, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
May 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly use short filenames from uncompressed file sources. Also
default feature and component install states to ABSENT instead of UNKNOWN.
parent
964b7fb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
action.c
dlls/msi/action.c
+15
-6
action.h
dlls/msi/action.h
+1
-0
No files found.
dlls/msi/action.c
View file @
98d9cec7
...
...
@@ -381,6 +381,13 @@ inline static void reduce_to_longfilename(WCHAR* filename)
memmove
(
filename
,
p
+
1
,
(
strlenW
(
p
+
1
)
+
1
)
*
sizeof
(
WCHAR
));
}
inline
static
void
reduce_to_shortfilename
(
WCHAR
*
filename
)
{
LPWSTR
p
=
strchrW
(
filename
,
'|'
);
if
(
p
)
*
p
=
0
;
}
WCHAR
*
load_dynamic_stringW
(
MSIRECORD
*
row
,
INT
index
)
{
UINT
rc
;
...
...
@@ -599,6 +606,7 @@ void ACTION_free_package_structures( MSIPACKAGE* package)
{
HeapFree
(
GetProcessHeap
(),
0
,
package
->
files
[
i
].
File
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
files
[
i
].
FileName
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
files
[
i
].
ShortName
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
files
[
i
].
Version
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
files
[
i
].
Language
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
files
[
i
].
SourcePath
);
...
...
@@ -1609,7 +1617,7 @@ static int load_component(MSIPACKAGE* package, MSIRECORD * row)
sz
=
96
;
MSI_RecordGetStringW
(
row
,
6
,
package
->
components
[
index
].
KeyPath
,
&
sz
);
package
->
components
[
index
].
Installed
=
INSTALLSTATE_
UNKNOWN
;
package
->
components
[
index
].
Installed
=
INSTALLSTATE_
ABSENT
;
package
->
components
[
index
].
Action
=
INSTALLSTATE_UNKNOWN
;
package
->
components
[
index
].
ActionRequest
=
INSTALLSTATE_UNKNOWN
;
...
...
@@ -1676,7 +1684,7 @@ static void load_feature(MSIPACKAGE* package, MSIRECORD * row)
package
->
features
[
index
].
Attributes
=
MSI_RecordGetInteger
(
row
,
8
);
package
->
features
[
index
].
Installed
=
INSTALLSTATE_
UNKNOWN
;
package
->
features
[
index
].
Installed
=
INSTALLSTATE_
ABSENT
;
package
->
features
[
index
].
Action
=
INSTALLSTATE_UNKNOWN
;
package
->
features
[
index
].
ActionRequest
=
INSTALLSTATE_UNKNOWN
;
...
...
@@ -1848,8 +1856,10 @@ static UINT load_file(MSIPACKAGE* package, MSIRECORD * row)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
package
->
files
[
index
].
FileName
=
load_dynamic_stringW
(
row
,
3
);
reduce_to_longfilename
(
package
->
files
[
index
].
FileName
);
package
->
files
[
index
].
ShortName
=
load_dynamic_stringW
(
row
,
3
);
reduce_to_shortfilename
(
package
->
files
[
index
].
ShortName
);
package
->
files
[
index
].
FileSize
=
MSI_RecordGetInteger
(
row
,
4
);
package
->
files
[
index
].
Version
=
load_dynamic_stringW
(
row
,
5
);
...
...
@@ -2981,8 +2991,7 @@ static UINT ready_media_for_file(MSIPACKAGE *package, WCHAR* path,
if
(
file
->
Attributes
&
msidbFileAttributesNoncompressed
)
{
sz
=
MAX_PATH
;
MSI_GetPropertyW
(
package
,
cszSourceDir
,
path
,
&
sz
);
TRACE
(
"Uncompressed File, no media to ready.
\n
"
);
return
ERROR_SUCCESS
;
}
...
...
@@ -3154,7 +3163,7 @@ static UINT ACTION_InstallFiles(MSIPACKAGE *package)
if
(
file
->
Attributes
&
msidbFileAttributesNoncompressed
)
{
p
=
resolve_folder
(
package
,
comp
->
Directory
,
TRUE
,
FALSE
,
NULL
);
file
->
SourcePath
=
build_directory_name
(
2
,
p
,
file
->
Fil
e
);
file
->
SourcePath
=
build_directory_name
(
2
,
p
,
file
->
ShortNam
e
);
HeapFree
(
GetProcessHeap
(),
0
,
p
);
}
else
...
...
dlls/msi/action.h
View file @
98d9cec7
...
...
@@ -82,6 +82,7 @@ typedef struct tagMSIFILE
LPWSTR
File
;
INT
ComponentIndex
;
LPWSTR
FileName
;
LPWSTR
ShortName
;
INT
FileSize
;
LPWSTR
Version
;
LPWSTR
Language
;
...
...
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