Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
f8cd358d
Commit
f8cd358d
authored
Jul 06, 2015
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix possible crash in test logging on Windows 10.
parent
2ded5190
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mediastreamer2_tester_windows.cpp
tester/mediastreamer2_tester_windows.cpp
+2
-2
No files found.
tester/mediastreamer2_tester_windows.cpp
View file @
f8cd358d
...
...
@@ -6,7 +6,7 @@ using namespace ms2_tester_runtime_component;
using
namespace
Platform
;
using
namespace
Windows
::
Storage
;
#define MAX_TRACE_SIZE
512
#define MAX_TRACE_SIZE
2048
#define MAX_SUITE_NAME_SIZE 128
#define MAX_WRITABLE_DIR_SIZE 1024
...
...
@@ -19,7 +19,7 @@ static void nativeOutputTraceHandler(int lev, const char *fmt, va_list args)
std
::
string
str
;
str
.
resize
(
MAX_TRACE_SIZE
);
vsnprintf
((
char
*
)
str
.
c_str
(),
MAX_TRACE_SIZE
,
fmt
,
args
);
mbstowcs
(
wstr
,
str
.
c_str
(),
sizeof
(
wstr
)
);
mbstowcs
(
wstr
,
str
.
c_str
(),
MAX_TRACE_SIZE
-
1
);
String
^
msg
=
ref
new
String
(
wstr
);
sTraceListener
->
outputTrace
(
msg
);
}
...
...
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