Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita027512

Browse files
joschockspbrogan
authored andcommitted
Fix for indexing problem in FilterHandles (microsoft#10)
1 parent2db1724 commita027512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎PcBdsPkg/MsBootPolicy/MsBootPolicy.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ VOID FilterHandles(EFI_HANDLE *HandleBuffer, UINTN *HandleCount, FILTER_ROUTINE
118118
if (EFI_ERROR(Status)||// Remove handles that don't have device path
119119
(!KeepHandleFilter(DevicePath))) {// TRUE keeps handle, FALSE deletes handle
120120
(*HandleCount)--;
121-
CopyMem(&HandleBuffer[Index],&HandleBuffer[Index+1],*HandleCount*sizeof(EFI_HANDLE*));
121+
CopyMem(&HandleBuffer[Index],&HandleBuffer[Index+1],(*HandleCount-Index)*sizeof(EFI_HANDLE*));
122122
continue;
123123
}
124124
Index++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp