Fix a compiler wrning
This commit is contained in:
parent
98de216878
commit
efa1292b2d
@ -991,7 +991,7 @@ std::wstring SGPath::wstr() const
|
|||||||
wchar_t wideBuf = malloc(buflen * sizeof(int));
|
wchar_t wideBuf = malloc(buflen * sizeof(int));
|
||||||
if (wideBuf) {
|
if (wideBuf) {
|
||||||
size_t count = mbstowcs(wideBuf, path.c_str(), buflen);
|
size_t count = mbstowcs(wideBuf, path.c_str(), buflen);
|
||||||
if (count == -1) {
|
if (count == (size_t)-1) {
|
||||||
return std::wstring();
|
return std::wstring();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user