mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Don't assume UNICODE_STRINGs are nul terminated
svn path=/trunk/; revision=17762
This commit is contained in:
parent
c0337d5d24
commit
7555a90fe9
1 changed files with 2 additions and 1 deletions
|
@ -2343,7 +2343,8 @@ CSR_API(CsrGetTitle)
|
|||
RtlZeroMemory(&Request->Data.GetTitleRequest, sizeof(CSRSS_GET_TITLE));
|
||||
Request->Data.GetTitleRequest.ConsoleHandle = Request->Data.GetTitleRequest.ConsoleHandle;
|
||||
Request->Data.GetTitleRequest.Length = Console->Title.Length;
|
||||
wcscpy (Request->Data.GetTitleRequest.Title, Console->Title.Buffer);
|
||||
memcpy (Request->Data.GetTitleRequest.Title, Console->Title.Buffer,
|
||||
Console->Title.Length);
|
||||
Length = CSR_API_MESSAGE_HEADER_SIZE(CSRSS_SET_TITLE) + Console->Title.Length;
|
||||
|
||||
ConioUnlockConsole(Console);
|
||||
|
|
Loading…
Reference in a new issue