mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(gx): fix FindDisplayDevice enumerator argument
This commit is contained in:
parent
97f6949ecd
commit
4aa3967124
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ int32_t CGxDevice::AdapterInfer(uint16_t& deviceID) {
|
|||
int32_t FindDisplayDevice(PDISPLAY_DEVICE device, uint32_t flag) {
|
||||
DWORD i = 0;
|
||||
device->cb = sizeof(DISPLAY_DEVICE);
|
||||
while (EnumDisplayDevices(nullptr, i, device, 0)) {
|
||||
while (EnumDisplayDevices(nullptr, i++, device, 0)) {
|
||||
if ((device->StateFlags & flag) == flag) {
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue