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
95258873
Commit
95258873
authored
Jul 23, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Print ReportEvent() messages one line at a time.
.NET Framework passes multiline backtraces to ReportEvent(), which get cut off when passed to debugstr_w().
parent
3939eaf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
13 deletions
+27
-13
eventlog.c
dlls/advapi32/eventlog.c
+27
-13
No files found.
dlls/advapi32/eventlog.c
View file @
95258873
...
...
@@ -642,20 +642,34 @@ BOOL WINAPI ReportEventW( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dw
for
(
i
=
0
;
i
<
wNumStrings
;
i
++
)
{
switch
(
wType
)
const
WCHAR
*
line
=
lpStrings
[
i
];
while
(
*
line
)
{
case
EVENTLOG_SUCCESS
:
TRACE_
(
eventlog
)(
"%s
\n
"
,
debugstr_w
(
lpStrings
[
i
]));
break
;
case
EVENTLOG_ERROR_TYPE
:
ERR_
(
eventlog
)(
"%s
\n
"
,
debugstr_w
(
lpStrings
[
i
]));
break
;
case
EVENTLOG_WARNING_TYPE
:
WARN_
(
eventlog
)(
"%s
\n
"
,
debugstr_w
(
lpStrings
[
i
]));
break
;
default:
TRACE_
(
eventlog
)(
"%s
\n
"
,
debugstr_w
(
lpStrings
[
i
]));
break
;
const
WCHAR
*
next
=
wcschr
(
line
,
'\n'
);
if
(
next
)
++
next
;
else
next
=
line
+
wcslen
(
line
);
switch
(
wType
)
{
case
EVENTLOG_SUCCESS
:
TRACE_
(
eventlog
)(
"%s
\n
"
,
debugstr_wn
(
line
,
next
-
line
));
break
;
case
EVENTLOG_ERROR_TYPE
:
ERR_
(
eventlog
)(
"%s
\n
"
,
debugstr_wn
(
line
,
next
-
line
));
break
;
case
EVENTLOG_WARNING_TYPE
:
WARN_
(
eventlog
)(
"%s
\n
"
,
debugstr_wn
(
line
,
next
-
line
));
break
;
default:
TRACE_
(
eventlog
)(
"%s
\n
"
,
debugstr_wn
(
line
,
next
-
line
));
break
;
}
line
=
next
;
}
}
return
TRUE
;
...
...
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