mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[MMIXER]
- Fix buffer overflow svn path=/trunk/; revision=44660
This commit is contained in:
@@ -576,8 +576,12 @@ MMixerCreateDestinationLine(
|
||||
|
||||
if (LineName)
|
||||
{
|
||||
wcscpy(DestinationLine->Line.szShortName, LineName);
|
||||
wcscpy(DestinationLine->Line.szName, LineName);
|
||||
MixerContext->Copy(DestinationLine->Line.szShortName, LineName, (min(MIXER_SHORT_NAME_CHARS, wcslen(LineName)+1)) * sizeof(WCHAR));
|
||||
DestinationLine->Line.szShortName[MIXER_SHORT_NAME_CHARS-1] = L'\0';
|
||||
|
||||
MixerContext->Copy(DestinationLine->Line.szName, LineName, (min(MIXER_LONG_NAME_CHARS, wcslen(LineName)+1)) * sizeof(WCHAR));
|
||||
DestinationLine->Line.szName[MIXER_LONG_NAME_CHARS-1] = L'\0';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user