mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-25 02:33:09 +00:00
Fixed a bug where not all modems, printers and ethernet interfaces would get listed after sorting.
This commit is contained in:
parent
d4baa318e4
commit
425dac6a7c
@ -1297,7 +1297,7 @@ static GList *add_serial_names(void)
|
||||
closedir(d);
|
||||
}
|
||||
if (glist)
|
||||
g_list_sort(glist, gl_str_cmp);
|
||||
glist = g_list_sort(glist, gl_str_cmp);
|
||||
else
|
||||
glist = g_list_append(glist, (void *)GetString(STR_NONE_LAB));
|
||||
return glist;
|
||||
@ -1339,7 +1339,7 @@ static GList *add_ether_names(void)
|
||||
glist = g_list_append(glist, s_slirp);
|
||||
#endif
|
||||
if (glist)
|
||||
g_list_sort(glist, gl_str_cmp);
|
||||
glist = g_list_sort(glist, gl_str_cmp);
|
||||
else
|
||||
glist = g_list_append(glist, (void *)GetString(STR_NONE_LAB));
|
||||
return glist;
|
||||
|
@ -1144,7 +1144,7 @@ static GList *add_serial_names(void)
|
||||
closedir(d);
|
||||
}
|
||||
if (glist)
|
||||
g_list_sort(glist, gl_str_cmp);
|
||||
glist = g_list_sort(glist, gl_str_cmp);
|
||||
else
|
||||
glist = g_list_append(glist, (void *)"<none>");
|
||||
return glist;
|
||||
@ -1186,7 +1186,7 @@ static GList *add_ether_names(void)
|
||||
glist = g_list_append(glist, s_slirp);
|
||||
#endif
|
||||
if (glist)
|
||||
g_list_sort(glist, gl_str_cmp);
|
||||
glist = g_list_sort(glist, gl_str_cmp);
|
||||
else
|
||||
glist = g_list_append(glist, (void *)"<none>");
|
||||
return glist;
|
||||
|
Loading…
Reference in New Issue
Block a user