]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbKbDxe/efikey.c
Make MdeModulePkg GCC clean.
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbKbDxe / efikey.c
index a4a19e4b9c040643366bd965c303794275150380..f551c0a93bf5e7b794e3588475b96a84f5ca34ff 100644 (file)
@@ -98,7 +98,7 @@ USBKeyboardCheckForKey (
   );\r
 \r
 EFI_GUID  gEfiUsbKeyboardDriverGuid = {\r
-  0xa05f5f78, 0xfb3, 0x4d10, 0x90, 0x90, 0xac, 0x4, 0x6e, 0xeb, 0x7c, 0x3c\r
+  0xa05f5f78, 0xfb3, 0x4d10, {0x90, 0x90, 0xac, 0x4, 0x6e, 0xeb, 0x7c, 0x3c}\r
 };\r
 \r
 //\r
@@ -330,7 +330,7 @@ USBKeyboardDriverBindingStart (
       //\r
       // We only care interrupt endpoint here\r
       //\r
-      UsbKeyboardDevice->IntEndpointDescriptor  = EndpointDescriptor;\r
+      CopyMem(&UsbKeyboardDevice->IntEndpointDescriptor, &EndpointDescriptor, sizeof(EndpointDescriptor));\r
       Found = TRUE;\r
     }\r
   }\r