We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c277b04 commit e9c0cbeCopy full SHA for e9c0cbe
internal/os/disk/api.go
@@ -220,7 +220,7 @@ func (DiskAPI) GetDiskPage83ID(disk syscall.Handle) (string, error) {
220
page83ID := []byte{}
221
byteSize := unsafe.Sizeof(byte(0))
222
for n = 0; n < devIDDesc.NumberOfIdentifiers; n++ {
223
- if pID.Association == StorageIDAssocDevice {
+ if pID.Association == StorageIDAssocDevice && (pID.CodeSet == StorageIDCodeSetBinary || pID.CodeSet == StorageIDCodeSetASCII) {
224
for m = 0; m < pID.IdentifierSize; m++ {
225
page83ID = append(page83ID, *(*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&pID.Identifier[0])) + byteSize*uintptr(m))))
226
}
0 commit comments