mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-03 22:37:56 +00:00
disk_generic: Iterate using index instead of pointers
This commit is contained in:
parent
c79a52f3b8
commit
912d2e05be
@ -603,9 +603,10 @@ void *Sys_open(const char *name, bool read_only)
|
||||
#endif
|
||||
|
||||
|
||||
for (disk_factory **f = disk_factories; *f; ++f) {
|
||||
for (int i = 0; disk_factories[i]; ++i) {
|
||||
disk_factory *f = disk_factories[i];
|
||||
disk_generic *generic;
|
||||
disk_generic::status st = (*f)(name, read_only, &generic);
|
||||
disk_generic::status st = f(name, read_only, &generic);
|
||||
if (st == disk_generic::DISK_INVALID)
|
||||
return NULL;
|
||||
if (st == disk_generic::DISK_VALID) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user