Two missing CONFIG_END's in qt_deviceconfig.cpp

This commit is contained in:
Jasmine Iwanek
2025-03-09 04:54:42 -04:00
parent 4504348fff
commit 097ea4abf2

View File

@@ -123,7 +123,7 @@ DeviceConfig::ProcessConfig(void *dc, const void *c, const bool is_dep)
if (config == NULL)
return;
while (config->type != -1) {
while (config->type != CONFIG_END) {
const int config_type = config->type & CONFIG_TYPE_MASK;
/* Ignore options of the wrong class. */
@@ -376,7 +376,7 @@ DeviceConfig::ConfigureDevice(const _device_ *device, int instance, Settings *se
return;
config = device->config;
while (config->type != -1) {
while (config->type != CONFIG_END) {
switch (config->type) {
default:
break;