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
29ee6540
Commit
29ee6540
authored
Oct 26, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Open the log file in shared write mode.
parent
b32ed71f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
msi.c
dlls/msi/msi.c
+3
-3
package.c
dlls/msi/package.c
+2
-3
No files found.
dlls/msi/msi.c
View file @
29ee6540
...
@@ -1775,12 +1775,12 @@ UINT WINAPI MsiEnableLogW(DWORD dwLogMode, LPCWSTR szLogFile, DWORD attributes)
...
@@ -1775,12 +1775,12 @@ UINT WINAPI MsiEnableLogW(DWORD dwLogMode, LPCWSTR szLogFile, DWORD attributes)
lstrcpyW
(
gszLogFile
,
szLogFile
);
lstrcpyW
(
gszLogFile
,
szLogFile
);
if
(
!
(
attributes
&
INSTALLLOGATTRIBUTES_APPEND
))
if
(
!
(
attributes
&
INSTALLLOGATTRIBUTES_APPEND
))
DeleteFileW
(
szLogFile
);
DeleteFileW
(
szLogFile
);
file
=
CreateFileW
(
szLogFile
,
GENERIC_WRITE
,
0
,
NULL
,
OPEN_ALWAYS
,
file
=
CreateFileW
(
szLogFile
,
GENERIC_WRITE
,
FILE_SHARE_WRITE
,
NULL
,
OPEN_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
file
!=
INVALID_HANDLE_VALUE
)
if
(
file
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
file
);
CloseHandle
(
file
);
else
else
ERR
(
"Unable to enable log %s
\n
"
,
debugstr_w
(
szLogFile
));
ERR
(
"Unable to enable log %s
(%u)
\n
"
,
debugstr_w
(
szLogFile
),
GetLastError
(
));
}
}
else
else
gszLogFile
[
0
]
=
'\0'
;
gszLogFile
[
0
]
=
'\0'
;
...
...
dlls/msi/package.c
View file @
29ee6540
...
@@ -1773,11 +1773,10 @@ INT MSI_ProcessMessage( MSIPACKAGE *package, INSTALLMESSAGE eMessageType,
...
@@ -1773,11 +1773,10 @@ INT MSI_ProcessMessage( MSIPACKAGE *package, INSTALLMESSAGE eMessageType,
MsiCloseHandle
(
rec
);
MsiCloseHandle
(
rec
);
}
}
if
((
!
rc
)
&&
(
gszLogFile
[
0
])
&&
!
((
eMessageType
&
0xff000000
)
==
if
(
!
rc
&&
gszLogFile
[
0
]
&&
(
eMessageType
&
0xff000000
)
!=
INSTALLMESSAGE_PROGRESS
)
INSTALLMESSAGE_PROGRESS
))
{
{
DWORD
write
;
DWORD
write
;
HANDLE
log_file
=
CreateFileW
(
gszLogFile
,
GENERIC_WRITE
,
0
,
NULL
,
HANDLE
log_file
=
CreateFileW
(
gszLogFile
,
GENERIC_WRITE
,
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
log_file
!=
INVALID_HANDLE_VALUE
)
if
(
log_file
!=
INVALID_HANDLE_VALUE
)
...
...
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