mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
ocvalidate: Move UEFI Driver '#' check to the correct place
This commit is contained in:
parent
b743c4635f
commit
132baab25d
@ -220,13 +220,6 @@ AsciiUefiDriverIsLegal (
|
||||
DriverLength = AsciiStrLen (Driver);
|
||||
|
||||
for (Index = 0; Index < DriverLength; ++Index) {
|
||||
//
|
||||
// NOTE: Skip '#' as it is treated as comments and thus is legal.
|
||||
//
|
||||
if (Driver[0] == '#') {
|
||||
continue;
|
||||
}
|
||||
|
||||
//
|
||||
// Skip allowed characters (0-9, A-Z, a-z, '_', '-', '.', '/').
|
||||
//
|
||||
|
||||
@ -209,6 +209,10 @@ CheckUEFIDrivers (
|
||||
for (Index = 0; Index < UserUefi->Drivers.Count; ++Index) {
|
||||
Driver = OC_BLOB_GET (UserUefi->Drivers.Values[Index]);
|
||||
|
||||
if (Driver[0] == '#') {
|
||||
continue;
|
||||
}
|
||||
|
||||
//
|
||||
// Sanitise strings.
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user