avifil32: Corrected destination size in MultiByteToWideChar.
This commit is contained in:
parent
3c688e9345
commit
f1b1fe63f6
|
@ -2189,7 +2189,7 @@ HRESULT WINAPI EditStreamSetInfoA(PAVISTREAM pstream, LPAVISTREAMINFOA asi,
|
|||
|
||||
memcpy(&asiw, asi, sizeof(asiw) - sizeof(asiw.szName));
|
||||
MultiByteToWideChar(CP_ACP, 0, asi->szName, -1,
|
||||
asiw.szName, sizeof(asiw.szName));
|
||||
asiw.szName, sizeof(asiw.szName)/sizeof(WCHAR));
|
||||
|
||||
return EditStreamSetInfoW(pstream, &asiw, sizeof(asiw));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue