mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 00:41:36 +00:00
- Fix build
- Fix wrong memory copying, found by PVS-Studio svn path=/trunk/; revision=53518
This commit is contained in:
parent
39fa8e8b38
commit
72aa51ee36
|
@ -159,7 +159,7 @@ UnloadAppInitDlls()
|
|||
LPWSTR ptr;
|
||||
size_t i;
|
||||
|
||||
RtlCopyMemory(buffer, szAppInit, KEY_LENGTH);
|
||||
RtlCopyMemory(buffer, szAppInit, KEY_LENGTH * sizeof(WCHAR));
|
||||
|
||||
for (i = 0; i < KEY_LENGTH; ++ i)
|
||||
{
|
||||
|
|
|
@ -4344,7 +4344,7 @@ GetMenuItemInfoA(
|
|||
{
|
||||
AnsiBuffer[miiW.cch] = 0;
|
||||
}
|
||||
mii->cch = miiW->cch;
|
||||
mii->cch = miiW.cch;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue