mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- Fix build
- Fix wrong memory copying, found by PVS-Studio svn path=/trunk/; revision=53518
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user