changeset 19947:f53f1a780a54

Do not assign constant string to audio_driver_list, it is supposed to contain malloc'd strings
author reimar
date Sat, 23 Sep 2006 14:34:32 +0000
parents ef94dfe93fe8
children 92b4bcd07f0e
files Gui/win32/preferences.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/win32/preferences.c	Sat Sep 23 13:06:55 2006 +0000
+++ b/Gui/win32/preferences.c	Sat Sep 23 14:34:32 2006 +0000
@@ -372,8 +372,9 @@
                 const ao_info_t *info = audio_out_drivers[j++]->info;
                 if(!audio_driver_list)
                 {
-                    gaddlist(&audio_driver_list, (char *)info->short_name);
-                    audio_driver_list[0] = "win32";
+                    // FIXME: default priority (i.e. order in audio_out_drivers) should be fixed instead
+                    // if win32 as default is really desirable
+                    gaddlist(&audio_driver_list, "win32"/*(char *)info->short_name*/);
                 }
                 SendDlgItemMessage(hwnd, ID_AO_DRIVER, CB_ADDSTRING, 0, (LPARAM) info->short_name);
             }