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
c0596e0a
Commit
c0596e0a
authored
Jul 24, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: The szLogFile parameter of MsiEnableLogW is optional, so handle the case of it being NULL.
parent
5700fe8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
msi.c
dlls/msi/msi.c
+13
-8
No files found.
dlls/msi/msi.c
View file @
c0596e0a
...
...
@@ -632,15 +632,20 @@ UINT WINAPI MsiEnableLogW(DWORD dwLogMode, LPCWSTR szLogFile, DWORD attributes)
TRACE
(
"%08lx %s %08lx
\n
"
,
dwLogMode
,
debugstr_w
(
szLogFile
),
attributes
);
lstrcpyW
(
gszLogFile
,
szLogFile
);
if
(
!
(
attributes
&
INSTALLLOGATTRIBUTES_APPEND
))
DeleteFileW
(
szLogFile
);
file
=
CreateFileW
(
szLogFile
,
GENERIC_WRITE
,
0
,
NULL
,
OPEN_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
file
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
file
);
if
(
szLogFile
)
{
lstrcpyW
(
gszLogFile
,
szLogFile
);
if
(
!
(
attributes
&
INSTALLLOGATTRIBUTES_APPEND
))
DeleteFileW
(
szLogFile
);
file
=
CreateFileW
(
szLogFile
,
GENERIC_WRITE
,
0
,
NULL
,
OPEN_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
file
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
file
);
else
ERR
(
"Unable to enable log %s
\n
"
,
debugstr_w
(
szLogFile
));
}
else
ERR
(
"Unable to enable log %s
\n
"
,
debugstr_w
(
szLogFile
))
;
gszLogFile
[
0
]
=
'\0'
;
return
ERROR_SUCCESS
;
}
...
...
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