mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-11-26 15:55:14 +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];
|
||||
uniChars = MultiByteToWideChar(CP_THREAD_ACP, 0,
|
||||
lpLibFileName, -1,
|
||||
wideBuffer, uniChars * sizeof(WCHAR));
|
||||
wideBuffer, uniChars);
|
||||
if (uniChars > 0) {
|
||||
bool ret = isImageBlacklistedW(wideBuffer);
|
||||
delete[] wideBuffer;
|
||||
|
||||
Reference in new issue
Block a user