[USER32]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 17 May 2014 23:00:34 +0000 (23:00 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 17 May 2014 23:00:34 +0000 (23:00 +0000)
Fix sizeof(WCHAR) vs sizeof(CHAR) problem. Patch by Victor Martinez.
CORE-8166 #resolve #comment Committed in r63341, thanks.

svn path=/trunk/; revision=63341

reactos/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)
                {