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
045d817f
Commit
045d817f
authored
Jul 18, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Jul 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Create files with the correct file attributes.
parent
1aba0d62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
files.c
dlls/msi/files.c
+5
-1
No files found.
dlls/msi/files.c
View file @
045d817f
...
...
@@ -210,6 +210,7 @@ static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
HANDLE
handle
;
LPWSTR
file
;
MSIFILE
*
f
;
DWORD
attrs
;
file
=
strdupAtoW
(
pfdin
->
psz1
);
f
=
get_loaded_file
(
data
->
package
,
file
);
...
...
@@ -231,8 +232,11 @@ static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
TRACE
(
"extracting %s
\n
"
,
debugstr_w
(
f
->
TargetPath
)
);
attrs
=
f
->
Attributes
&
(
FILE_ATTRIBUTE_READONLY
|
FILE_ATTRIBUTE_HIDDEN
|
FILE_ATTRIBUTE_SYSTEM
);
if
(
!
attrs
)
attrs
=
FILE_ATTRIBUTE_NORMAL
;
handle
=
CreateFileW
(
f
->
TargetPath
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
NULL
,
CREATE_ALWAYS
,
attrs
,
NULL
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
ERR
(
"failed to create %s (error %ld)
\n
"
,
...
...
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