Fix two user32 resource tests
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 20 Oct 2009 14:42:08 +0000 (14:42 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 20 Oct 2009 14:42:08 +0000 (14:42 +0000)
svn path=/trunk/; revision=43648

reactos/subsystems/win32/win32k/ntuser/accelerator.c

index 819e53b..42e50db 100644 (file)
@@ -384,6 +384,15 @@ NtUserCreateAcceleratorTable(
           {
               Accel->Table[Index].key = Entries[Index].key;
           }
+          else
+          {
+             RtlMultiByteToUnicodeN(&Accel->Table[Index].key, 
+                                    sizeof(WCHAR), 
+                                    NULL, 
+                                    (PCSTR)&Entries[Index].key, 
+                                    sizeof(CHAR));
+          }
+
           Accel->Table[Index].cmd = Entries[Index].cmd;
       }