summaryrefslogtreecommitdiff
path: root/general/tracing/SystemTraceControl/SystemTraceControl.cpp
diff options
context:
space:
mode:
authorkarlf <[email protected]>2016-08-11 13:28:13 -0700
committerkarlf <[email protected]>2016-08-11 13:28:13 -0700
commit96eb96dfb613e4c745db6bd1f53a92fe7e2290fc (patch)
treead5f3ede5cbcd6b598677ce41bcf8318471bdd92 /general/tracing/SystemTraceControl/SystemTraceControl.cpp
parent687b274aa38fd05c8c26e3068932121876d7f745 (diff)
Updated for "Windows 10 Anniversary Update" (Version 1607)
Diffstat (limited to 'general/tracing/SystemTraceControl/SystemTraceControl.cpp')
-rw-r--r--general/tracing/SystemTraceControl/SystemTraceControl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/general/tracing/SystemTraceControl/SystemTraceControl.cpp b/general/tracing/SystemTraceControl/SystemTraceControl.cpp
index a8c55026..42647061 100644
--- a/general/tracing/SystemTraceControl/SystemTraceControl.cpp
+++ b/general/tracing/SystemTraceControl/SystemTraceControl.cpp
@@ -81,13 +81,13 @@ AllocateTraceProperties (
(MAXIMUM_SESSION_NAME * sizeof(WCHAR));
if (LoggerName != NULL) {
- StringCchCopy((LPWSTR)((PCHAR)TraceProperties + TraceProperties->LoggerNameOffset),
+ StringCchCopyW((LPWSTR)((PCHAR)TraceProperties + TraceProperties->LoggerNameOffset),
MAXIMUM_SESSION_NAME,
LoggerName);
}
if (LogFileName != NULL) {
- StringCchCopy((LPWSTR)((PCHAR)TraceProperties + TraceProperties->LogFileNameOffset),
+ StringCchCopyW((LPWSTR)((PCHAR)TraceProperties + TraceProperties->LogFileNameOffset),
MAX_PATH,
LogFileName);
}
@@ -146,7 +146,7 @@ wmain()
// Start trace session which can receive events from SystemTraceProvider.
//
- Status = StartTrace(&SessionHandle, LoggerName, TraceProperties);
+ Status = StartTraceW(&SessionHandle, LoggerName, TraceProperties);
if (Status != ERROR_SUCCESS) {
wprintf(L"StartTrace() failed with %lu\n", Status);
goto Exit;