diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2024-02-15 18:05:44 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2024-02-15 18:05:44 +0300 |
commit | ea8ae301624126b12fa8ed2e2220eddb1850e4b4 (patch) | |
tree | 67c46d2ffbcfd70df067c49b33d11cbf9f267a90 /Lessons | |
parent | 3ffb0a36a93f7a617af1069c04930794f9e3824d (diff) | |
download | UEFI-Lessons-ea8ae301624126b12fa8ed2e2220eddb1850e4b4.tar.gz UEFI-Lessons-ea8ae301624126b12fa8ed2e2220eddb1850e4b4.tar.bz2 UEFI-Lessons-ea8ae301624126b12fa8ed2e2220eddb1850e4b4.zip |
String token starts from 1
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons')
-rw-r--r-- | Lessons/Lesson_54/README.md | 2 | ||||
-rw-r--r-- | Lessons/Lesson_54/UefiLessonsPkg/HIIAddLocalization/HIIAddLocalization.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lessons/Lesson_54/README.md b/Lessons/Lesson_54/README.md index 4970bfc..0ece4f1 100644 --- a/Lessons/Lesson_54/README.md +++ b/Lessons/Lesson_54/README.md @@ -119,7 +119,7 @@ UefiMain ( EFI_GUID PackageGuid = {0xD9DCC5DF, 0x4007, 0x435E, {0x90, 0x98, 0x89, 0x70, 0x93, 0x55, 0x04, 0xB2 }}; EFI_HII_HANDLE* Handle = HiiGetHiiHandles(&PackageGuid); - for (UINTN i=0; i<0xFFFF; i++) { + for (UINTN i=1; i<0xFFFF; i++) { EFI_STRING String = HiiGetString(*Handle, i, "en-US"); if (String != NULL) { Print(L"ID=%d, %s\n", i, String); diff --git a/Lessons/Lesson_54/UefiLessonsPkg/HIIAddLocalization/HIIAddLocalization.c b/Lessons/Lesson_54/UefiLessonsPkg/HIIAddLocalization/HIIAddLocalization.c index 262e075..15e9261 100644 --- a/Lessons/Lesson_54/UefiLessonsPkg/HIIAddLocalization/HIIAddLocalization.c +++ b/Lessons/Lesson_54/UefiLessonsPkg/HIIAddLocalization/HIIAddLocalization.c @@ -22,7 +22,7 @@ UefiMain ( EFI_HII_HANDLE* Handle = HiiGetHiiHandles(&PackageGuid); /* *** If you add this: *** - for (UINTN i=0; i<0xFFFF; i++) { + for (UINTN i=1; i<0xFFFF; i++) { EFI_STRING String = HiiGetString(*Handle, i, "en-US"); if (String != NULL) { Print(L"ID=%d, %s\n", i, String); |