Bernhard Kölbl : windows.media.speech: Rename variable out to impl in factory_ActivateInstance.
Alexandre Julliard
julliard at winehq.org
Thu Jun 2 16:26:10 CDT 2022
Module: wine
Branch: master
Commit: 7090d6c2160565e8294ccad4ab0c1fc0978e556d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7090d6c2160565e8294ccad4ab0c1fc0978e556d
Author: Bernhard Kölbl <besentv at gmail.com>
Date: Thu Jun 2 15:59:55 2022 +0200
windows.media.speech: Rename variable out to impl in factory_ActivateInstance.
Signed-off-by: Bernhard Kölbl <besentv at gmail.com>
---
dlls/windows.media.speech/synthesizer.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/dlls/windows.media.speech/synthesizer.c b/dlls/windows.media.speech/synthesizer.c
index 7a1a43be889..3aa04ed9fbd 100644
--- a/dlls/windows.media.speech/synthesizer.c
+++ b/dlls/windows.media.speech/synthesizer.c
@@ -384,21 +384,22 @@ static HRESULT WINAPI factory_GetTrustLevel( IActivationFactory *iface, TrustLev
static HRESULT WINAPI factory_ActivateInstance( IActivationFactory *iface, IInspectable **instance )
{
- struct synthesizer *obj;
+ struct synthesizer *impl;
TRACE("iface %p, instance %p.\n", iface, instance);
- if (!(obj = calloc(1, sizeof(*obj))))
+ if (!(impl = calloc(1, sizeof(*impl))))
{
*instance = NULL;
return E_OUTOFMEMORY;
}
- obj->ISpeechSynthesizer_iface.lpVtbl = &synthesizer_vtbl;
- obj->ISpeechSynthesizer2_iface.lpVtbl = &synthesizer2_vtbl;
- obj->IClosable_iface.lpVtbl = &closable_vtbl;
- obj->ref = 1;
- *instance = (IInspectable *)&obj->ISpeechSynthesizer_iface;
+ impl->ISpeechSynthesizer_iface.lpVtbl = &synthesizer_vtbl;
+ impl->ISpeechSynthesizer2_iface.lpVtbl = &synthesizer2_vtbl;
+ impl->IClosable_iface.lpVtbl = &closable_vtbl;
+ impl->ref = 1;
+
+ *instance = (IInspectable *)&impl->ISpeechSynthesizer_iface;
return S_OK;
}
More information about the wine-cvs
mailing list