Hans Leidekker (@hans) commented about dlls/wbemprox/builtin.c:
+static enum fill_status fill_rawbiosdata( struct table *table, const struct expr *cond ) +{
- struct record_rawsmbiostables *rec;
- enum fill_status status = FILL_STATUS_UNFILTERED;
- UINT row = 0, len;
- RawSMBIOSData *buf;
- if (!resize_table( table, 1, sizeof(*rec) )) return FILL_STATUS_FAILED;
- len = GetSystemFirmwareTable( RSMB, 0, NULL, 0 );
- if (!(buf = malloc( len ))) return FILL_STATUS_FAILED;
- GetSystemFirmwareTable( RSMB, 0, buf, len );
- rec = (struct record_rawsmbiostables *)table->data;
- rec->smbiosdata = get_rawbiosdata( buf + FIELD_OFFSET( RawSMBIOSData, SMBIOSTableData ), buf->Length );
`rec->smbiosdata = get_rawbiosdata( (char *)buf + FIELD_OFFSET( RawSMBIOSData, SMBIOSTableData ), buf->Length );`