Bernhard Kölbl (@besentv) commented about dlls/windows.media.speech/synthesizer.c:
+static HRESULT synthesizer_options_allocate( struct synthesizer_options **out ) +{
- struct synthesizer_options *options;
- if (!(options = calloc(1, sizeof(*options)))) return E_OUTOFMEMORY;
- options->ISpeechSynthesizerOptions_iface.lpVtbl = &synthesizer_options_vtbl;
- options->ISpeechSynthesizerOptions2_iface.lpVtbl = &synthesizer_options2_vtbl;
- options->ISpeechSynthesizerOptions3_iface.lpVtbl = &synthesizer_options3_vtbl;
- /* all other values default to 0 or false */
- options->audio_pitch = 1.0;
- options->audio_volume = 1.0;
- options->speaking_rate = 1.0;
- options->ref = 1;
- *out = options;
Please add a trace showing the address of the created object.
Comme ça: `TRACE("Created I... %p.\n", *out)`