20 Feb
2023
20 Feb
'23
6:17 p.m.
Rémi Bernon (@rbernon) commented about dlls/windows.media.speech/unixlib.c:
+ LOAD_FUNCPTR(vosk_model_new) + LOAD_FUNCPTR(vosk_model_free) + LOAD_FUNCPTR(vosk_recognizer_new) + LOAD_FUNCPTR(vosk_recognizer_free) +#undef LOAD_FUNCPTR + + return STATUS_SUCCESS; + +error: +#define LOAD_COMPATFUNC( f ) \ + p_##f = compat_##f; + LOAD_COMPATFUNC(vosk_model_new) + LOAD_COMPATFUNC(vosk_model_free) + LOAD_COMPATFUNC(vosk_recognizer_new) + LOAD_COMPATFUNC(vosk_recognizer_free) +#undef LOAD_COMPATFUNC I don't understand what good this does? If any of these functions is missing it's not going to work, so you should print and return an error.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2091#note_24824