Made config_set_wstring() also update the ANSI version of the string, should fix the FluidSynth soundfont file setting.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* Configuration file handler.
|
* Configuration file handler.
|
||||||
*
|
*
|
||||||
* Version: @(#)config.c 1.0.15 2017/10/09
|
* Version: @(#)config.c 1.0.16 2017/10/11
|
||||||
*
|
*
|
||||||
* Authors: Sarah Walker,
|
* Authors: Sarah Walker,
|
||||||
* Miran Grca, <mgrca8@gmail.com>
|
* Miran Grca, <mgrca8@gmail.com>
|
||||||
@@ -1958,6 +1958,7 @@ config_set_wstring(char *head, char *name, wchar_t *val)
|
|||||||
entry = create_entry(section, name);
|
entry = create_entry(section, name);
|
||||||
|
|
||||||
memcpy(entry->wdata, val, 512);
|
memcpy(entry->wdata, val, 512);
|
||||||
|
wcstombs(entry->data, entry->wdata, 256);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user