Skip to content

Commit

Permalink
updated libs
Browse files Browse the repository at this point in the history
  • Loading branch information
objeck committed Dec 7, 2024
1 parent 214e5b2 commit c87fbe7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified core/lib/json_rpc.obl
Binary file not shown.
Binary file modified core/lib/net.obl
Binary file not shown.
6 changes: 3 additions & 3 deletions core/shared/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ static bool BytesToUnicode(const std::string &in, std::wstring &out) {
buffer = nullptr;
#else
// allocate space
const size_t size = mbstowcs(nullptr, in.c_str(), in.size());
size_t size = mbstowcs(nullptr, in.c_str(), in.size());
if(size == (size_t)-1) {
return false;
}

if(wsize < buffer_size) {
wsize = buffer_size;
if(size < in.size()) {
size = in.size();
}
wchar_t* buffer = new wchar_t[size + 1];
// convert
Expand Down

0 comments on commit c87fbe7

Please sign in to comment.