mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[VIDEOPRT] Fix monitor ID decoding issues
This commit is contained in:
parent
a330b56787
commit
4db8b82aeb
1 changed files with 4 additions and 2 deletions
|
@ -40,10 +40,12 @@ IntVideoPortGetMonitorId(
|
|||
|
||||
/* 3 letters 5-bit ANSI manufacturer code (big endian) */
|
||||
/* Letters encoded as A=1 to Z=26 */
|
||||
Manufacturer = *(PUSHORT)(&ChildExtension->ChildDescriptor[8]);
|
||||
Manufacturer = ((USHORT)ChildExtension->ChildDescriptor[8] << 8) +
|
||||
(USHORT)ChildExtension->ChildDescriptor[9];
|
||||
|
||||
/* Model number (16-bit little endian) */
|
||||
Model = *(PUSHORT)(&ChildExtension->ChildDescriptor[10]);
|
||||
Model = ((USHORT)ChildExtension->ChildDescriptor[11] << 8) +
|
||||
(USHORT)ChildExtension->ChildDescriptor[10];
|
||||
|
||||
/* Convert the Monitor ID to a readable form */
|
||||
swprintf(Buffer,
|
||||
|
|
Loading…
Reference in a new issue