mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-01-30 19:42:51 +03:00
fix(gx): fix FindDisplayDevice enumerator argument
This commit is contained in:
parent
97f6949ecd
commit
4aa3967124
@ -223,7 +223,7 @@ int32_t CGxDevice::AdapterInfer(uint16_t& deviceID) {
|
|||||||
int32_t FindDisplayDevice(PDISPLAY_DEVICE device, uint32_t flag) {
|
int32_t FindDisplayDevice(PDISPLAY_DEVICE device, uint32_t flag) {
|
||||||
DWORD i = 0;
|
DWORD i = 0;
|
||||||
device->cb = sizeof(DISPLAY_DEVICE);
|
device->cb = sizeof(DISPLAY_DEVICE);
|
||||||
while (EnumDisplayDevices(nullptr, i, device, 0)) {
|
while (EnumDisplayDevices(nullptr, i++, device, 0)) {
|
||||||
if ((device->StateFlags & flag) == flag) {
|
if ((device->StateFlags & flag) == flag) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user