Skip to content

Commit

Permalink
update gnu-to latest and fix a MinGW warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pbatard committed Apr 5, 2016
1 parent 8bb43f2 commit be2f837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ static CHAR16* GetDriverName(CONST EFI_HANDLE DriverHandle)
// Try EFI_COMPONENT_NAME2 protocol first
if ( (BS->OpenProtocol(DriverHandle, &ComponentName2Protocol, (VOID**)&ComponentName2,
EfiImageHandle, NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL) == EFI_SUCCESS) &&
(ComponentName2->GetDriverName(ComponentName2, "", &DriverName) == EFI_SUCCESS) )
(ComponentName2->GetDriverName(ComponentName2, (CHAR8*)"", &DriverName) == EFI_SUCCESS) )
return DriverName;

// Fallback to EFI_COMPONENT_NAME if that didn't work
if ( (BS->OpenProtocol(DriverHandle, &ComponentNameProtocol, (VOID**)&ComponentName,
EfiImageHandle, NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL) == EFI_SUCCESS) &&
(ComponentName->GetDriverName(ComponentName, "", &DriverName) == EFI_SUCCESS) )
(ComponentName->GetDriverName(ComponentName, (CHAR8*)"", &DriverName) == EFI_SUCCESS) )
return DriverName;

return L"(unknown driver)";
Expand Down
2 changes: 1 addition & 1 deletion gnu-efi
Submodule gnu-efi updated from 50b883 to b5b6a8

0 comments on commit be2f837

Please sign in to comment.