Author: dchapyshev
Date: Thu Sep 1 15:13:59 2011
New Revision: 53518
URL:
http://svn.reactos.org/svn/reactos?rev=53518&view=rev
Log:
- Fix build
- Fix wrong memory copying, found by PVS-Studio
Modified:
trunk/reactos/dll/win32/user32/misc/dllmain.c
trunk/reactos/dll/win32/user32/windows/menu.c
Modified: trunk/reactos/dll/win32/user32/misc/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/dllm…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/misc/dllmain.c [iso-8859-1] Thu Sep 1 15:13:59 2011
@@ -159,7 +159,7 @@
LPWSTR ptr;
size_t i;
- RtlCopyMemory(buffer, szAppInit, KEY_LENGTH);
+ RtlCopyMemory(buffer, szAppInit, KEY_LENGTH * sizeof(WCHAR));
for (i = 0; i < KEY_LENGTH; ++ i)
{
Modified: trunk/reactos/dll/win32/user32/windows/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/menu.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/menu.c [iso-8859-1] Thu Sep 1 15:13:59 2011
@@ -4344,7 +4344,7 @@
{
AnsiBuffer[miiW.cch] = 0;
}
- mii->cch = miiW->cch;
+ mii->cch = miiW.cch;
}
}
else