Sync with trunk r63343.
[reactos.git] / win32ss / user / user32 / misc / dllmain.c
index 5072b1b..b344aef 100644 (file)
@@ -131,7 +131,7 @@ LoadAppInitDlls()
         LPWSTR ptr;
                size_t i;
 
-        RtlCopyMemory(buffer, szAppInit, KEY_LENGTH);
+        RtlCopyMemory(buffer, szAppInit, KEY_LENGTH * sizeof(WCHAR) );
 
                for (i = 0; i < KEY_LENGTH; ++ i)
                {