Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ src/bin/vld.ini
/src/tests/vld_ComTest/ComTest_p.c
/src/tests/vld_ComTest/ComTest_i.c
*.VC.opendb
.vs
3 changes: 2 additions & 1 deletion src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,8 @@ VOID Print (LPWSTR messagew)
const size_t MAXMESSAGELENGTH = 5119;
size_t count = 0;
CHAR messagea [MAXMESSAGELENGTH + 1];
if (wcstombs_s(&count, messagea, MAXMESSAGELENGTH + 1, messagew, _TRUNCATE) != 0) {
errno_t ret = wcstombs_s(&count, messagea, MAXMESSAGELENGTH + 1, messagew, _TRUNCATE);
if (ret != 0 && ret != STRUNCATE) {
// Failed to convert the Unicode message to ASCII.
assert(FALSE);
return;
Expand Down