Skip to content

Commit d6632f9

Browse files
committed
support Type 127(EndOfTable) into class SMBIOS
1 parent 9828e3f commit d6632f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DumpSMBIOS/smbios.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ void SMBIOS::ParseSMBIOSStruct(void* Addr, UINT Len)
287287

288288
for (;;) {
289289
pHeader = (PSMBIOSHEADER)p;
290+
if (pHeader->Type == 127 && pHeader->Length == 4)
291+
break; // last avaiable table
290292
DispatchStructType((void*)p);
291293
LPBYTE nt = p + pHeader->Length; // point to struct end
292294
while (0 != (*nt | *(nt + 1))) nt++; // skip string area

0 commit comments

Comments
 (0)