mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-11-29 17:24:37 +00:00
Fix incorrect length passed to MultiByteToWideChar()
This commit is contained in:
1 parent
4102bab53f
commit
dd0b049048
1 file changed
+1
-1
@@ -82,7 +82,7 @@ private:
|
|||||||
PWCHAR wideBuffer = new WCHAR[uniChars];
|
PWCHAR wideBuffer = new WCHAR[uniChars];
|
||||||
uniChars = MultiByteToWideChar(CP_THREAD_ACP, 0,
|
uniChars = MultiByteToWideChar(CP_THREAD_ACP, 0,
|
||||||
lpLibFileName, -1,
|
lpLibFileName, -1,
|
||||||
wideBuffer, uniChars * sizeof(WCHAR));
|
wideBuffer, uniChars);
|
||||||
if (uniChars > 0) {
|
if (uniChars > 0) {
|
||||||
bool ret = isImageBlacklistedW(wideBuffer);
|
bool ret = isImageBlacklistedW(wideBuffer);
|
||||||
delete[] wideBuffer;
|
delete[] wideBuffer;
|
||||||
|
|||||||
Reference in new issue
Block a user