msctf: Remove superfluous casts.

This commit is contained in:
André Hentschel 2013-07-01 22:06:32 +02:00 committed by Alexandre Julliard
parent 900594198a
commit 795c732c0d
4 changed files with 4 additions and 4 deletions

View File

@ -617,7 +617,7 @@ static HRESULT WINAPI CompartmentSource_UnadviseSink(ITfSource *iface, DWORD pdw
if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_COMPARTMENTSINK) if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_COMPARTMENTSINK)
return E_INVALIDARG; return E_INVALIDARG;
sink = (CompartmentSink*)remove_Cookie(pdwCookie); sink = remove_Cookie(pdwCookie);
if (!sink) if (!sink)
return CONNECT_E_NOCONNECTION; return CONNECT_E_NOCONNECTION;

View File

@ -642,7 +642,7 @@ static HRESULT WINAPI ContextSource_UnadviseSink(ITfSource *iface, DWORD pdwCook
if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_CONTEXTSINK) if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_CONTEXTSINK)
return E_INVALIDARG; return E_INVALIDARG;
sink = (ContextSink*)remove_Cookie(pdwCookie); sink = remove_Cookie(pdwCookie);
if (!sink) if (!sink)
return CONNECT_E_NOCONNECTION; return CONNECT_E_NOCONNECTION;

View File

@ -739,7 +739,7 @@ static HRESULT WINAPI IPPSource_UnadviseSink(ITfSource *iface, DWORD pdwCookie)
if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_IPPSINK) if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_IPPSINK)
return E_INVALIDARG; return E_INVALIDARG;
sink = (InputProcessorProfilesSink*)remove_Cookie(pdwCookie); sink = remove_Cookie(pdwCookie);
if (!sink) if (!sink)
return CONNECT_E_NOCONNECTION; return CONNECT_E_NOCONNECTION;

View File

@ -662,7 +662,7 @@ static HRESULT WINAPI ThreadMgrSource_UnadviseSink(ITfSource *iface, DWORD pdwCo
if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_TMSINK) if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_TMSINK)
return E_INVALIDARG; return E_INVALIDARG;
sink = (ThreadMgrSink*)remove_Cookie(pdwCookie); sink = remove_Cookie(pdwCookie);
if (!sink) if (!sink)
return CONNECT_E_NOCONNECTION; return CONNECT_E_NOCONNECTION;