mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 22:56:13 +00:00
bug fixes
This commit is contained in:
@@ -1635,7 +1635,7 @@ namespace kernel32 {
|
||||
}
|
||||
|
||||
const size_t copyLen = std::min(len, nSize - 1);
|
||||
memcpy(lpFilename, stringToWideString(path.c_str()).data(), copyLen);
|
||||
memcpy(lpFilename, stringToWideString(path.c_str()).data(), copyLen * 2);
|
||||
if (copyLen < nSize) {
|
||||
lpFilename[copyLen] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user