diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-08 12:46:44 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-08 12:46:44 +0100 |
| commit | 933b23c1d0564a2287601947ebadd651f50a16f9 (patch) | |
| tree | ba3790eed53a27ecd524f75a3f2451f2e06cefe6 /dev/Boot/src/HEL | |
| parent | 1474d494b2fa4ce65d141467299fd2f9b7fd7672 (diff) | |
META: Bump source code.
Diffstat (limited to 'dev/Boot/src/HEL')
| -rw-r--r-- | dev/Boot/src/HEL/AMD64/BootEFI.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/Boot/src/HEL/AMD64/BootEFI.cc b/dev/Boot/src/HEL/AMD64/BootEFI.cc index b3e03f01..c56e560a 100644 --- a/dev/Boot/src/HEL/AMD64/BootEFI.cc +++ b/dev/Boot/src/HEL/AMD64/BootEFI.cc @@ -276,12 +276,12 @@ EFI_EXTERN_C EFI_API Int32 Main(EfiHandlePtr image_handle, // Assign to global 'kHandoverHeader'. - WideChar kernel_path[255] = {0}; - UInt32 kernel_path_sz = 255; + WideChar kernel_path[256U] = {0}; + UInt32 kernel_path_sz = 256U; if (ST->RuntimeServices->GetVariable(L"/props/boot_path", kEfiGlobalNamespaceVarGUID, nullptr, &kernel_path_sz, kernel_path) != kEfiOk) { - CopyMem(kernel_path, L"neoskrnl.exe", 15); + CopyMem(kernel_path, L"neoskrnl.exe", 13); UInt32 attr = 0x00000001 | 0x00000002 | 0x00000004; ST->RuntimeServices->SetVariable(L"/props/boot_path", kEfiGlobalNamespaceVarGUID, &attr, &kernel_path_sz, kernel_path); |
