- Fix build

- Fix wrong memory copying, found by PVS-Studio

svn path=/trunk/; revision=53518
This commit is contained in:
Dmitry Chapyshev 2011-09-01 15:13:59 +00:00
parent 39fa8e8b38
commit 72aa51ee36
2 changed files with 2 additions and 2 deletions

View file

@ -159,7 +159,7 @@ UnloadAppInitDlls()
LPWSTR ptr; LPWSTR ptr;
size_t i; size_t i;
RtlCopyMemory(buffer, szAppInit, KEY_LENGTH); RtlCopyMemory(buffer, szAppInit, KEY_LENGTH * sizeof(WCHAR));
for (i = 0; i < KEY_LENGTH; ++ i) for (i = 0; i < KEY_LENGTH; ++ i)
{ {

View file

@ -4344,7 +4344,7 @@ GetMenuItemInfoA(
{ {
AnsiBuffer[miiW.cch] = 0; AnsiBuffer[miiW.cch] = 0;
} }
mii->cch = miiW->cch; mii->cch = miiW.cch;
} }
} }
else else