mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[MMIXER]
- Fix buffer overflow svn path=/trunk/; revision=44660
This commit is contained in:
parent
cce0070699
commit
cf7f39eaba
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue