[PATCH v2 13/21] dlls/msctf: Use FIXME_ONCE

David Kahurani k.kahurani at gmail.com
Mon Oct 18 07:58:12 CDT 2021


introduce FIXME_ONCE

Signed-off-by: David Kahurani <k.kahurani at gmail.com>
---
 dlls/msctf/inputprocessor.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/dlls/msctf/inputprocessor.c b/dlls/msctf/inputprocessor.c
index ac7fad6..2826336 100644
--- a/dlls/msctf/inputprocessor.c
+++ b/dlls/msctf/inputprocessor.c
@@ -866,13 +866,8 @@ static HRESULT WINAPI InputProcessorProfileMgr_UnregisterProfile(ITfInputProcess
 static HRESULT WINAPI InputProcessorProfileMgr_GetActiveProfile(ITfInputProcessorProfileMgr *iface, REFGUID catid,
         TF_INPUTPROCESSORPROFILE *pProfile)
 {
-    static int once;
-
-    if (!once++)
-    {
-        InputProcessorProfiles *This = impl_from_ITfInputProcessorProfileMgr(iface);
-        FIXME("(%p)->(%s %p)\n", This, debugstr_guid(catid), pProfile);
-    }
+    InputProcessorProfiles *This = impl_from_ITfInputProcessorProfileMgr(iface);
+    FIXME_ONCE("(%p)->(%s %p)\n", This, debugstr_guid(catid), pProfile);
 
     return E_NOTIMPL;
 }
-- 
2.33.0




More information about the wine-devel mailing list