graphics() controller subid fix (win)

This commit is contained in:
Sebastian Hildebrandt 2021-01-25 08:21:20 +01:00
parent 19dc7a5292
commit 98f491a7c7
4 changed files with 19 additions and 9 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.34.8 | 2020-01-25 | `graphics()` controller subid fix (win) |
| 4.34.7 | 2020-01-13 | `services()` improved service discovery (linux) |
| 4.34.6 | 2020-01-12 | `networkInterfaces()` catch errors |
| 4.34.5 | 2020-01-07 | `networkInterfaceDefault()` fixed CMD popup (windows) |

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.34.8</th>
<td>2020-01-25</td>
<td><span class="code">graphics()</span> controller subid fix (win)</td>
</tr>
<tr>
<th scope="row">4.34.7</th>
<td>2020-01-13</td>

View File

@ -169,7 +169,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.34.7</span></div>
<div class="version">Current Version: <span id="version">4.34.8</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">
@ -208,7 +208,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">367</div>
<div class="numbers">375</div>
<div class="title">Dependents</div>
</div>
</div>

View File

@ -887,10 +887,14 @@ function graphics(callback) {
if (sections[i].trim() !== '') {
let lines = sections[i].trim().split('\r\n');
let subDeviceId = util.getValue(lines, 'PNPDeviceID', '=').match(/SUBSYS_[a-fA-F\d]{8}/)[0];
let pnpDeviceId = util.getValue(lines, 'PNPDeviceID', '=').match(/SUBSYS_[a-fA-F\d]{8}/);
let subDeviceId = null;
if (pnpDeviceId) {
subDeviceId = pnpDeviceId[0];
if (subDeviceId) {
subDeviceId = subDeviceId.split('_')[1];
}
}
controllers.push({
vendor: util.getValue(lines, 'AdapterCompatibility', '='),
model: util.getValue(lines, 'name', '='),