Fix incorrect length passed to MultiByteToWideChar()

This commit is contained in:
Cameron Gutman committed 2026-11-14 22:59:52 -06:00
1 parent 4102bab53f
commit dd0b049048
1 file changed
+1 -1
+1 -1
View File
@@ -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;