msctf: Remove superfluous casts.
This commit is contained in:
parent
900594198a
commit
795c732c0d
|
@ -617,7 +617,7 @@ static HRESULT WINAPI CompartmentSource_UnadviseSink(ITfSource *iface, DWORD pdw
|
|||
if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_COMPARTMENTSINK)
|
||||
return E_INVALIDARG;
|
||||
|
||||
sink = (CompartmentSink*)remove_Cookie(pdwCookie);
|
||||
sink = remove_Cookie(pdwCookie);
|
||||
if (!sink)
|
||||
return CONNECT_E_NOCONNECTION;
|
||||
|
||||
|
|
|
@ -642,7 +642,7 @@ static HRESULT WINAPI ContextSource_UnadviseSink(ITfSource *iface, DWORD pdwCook
|
|||
if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_CONTEXTSINK)
|
||||
return E_INVALIDARG;
|
||||
|
||||
sink = (ContextSink*)remove_Cookie(pdwCookie);
|
||||
sink = remove_Cookie(pdwCookie);
|
||||
if (!sink)
|
||||
return CONNECT_E_NOCONNECTION;
|
||||
|
||||
|
|
|
@ -739,7 +739,7 @@ static HRESULT WINAPI IPPSource_UnadviseSink(ITfSource *iface, DWORD pdwCookie)
|
|||
if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_IPPSINK)
|
||||
return E_INVALIDARG;
|
||||
|
||||
sink = (InputProcessorProfilesSink*)remove_Cookie(pdwCookie);
|
||||
sink = remove_Cookie(pdwCookie);
|
||||
if (!sink)
|
||||
return CONNECT_E_NOCONNECTION;
|
||||
|
||||
|
|
|
@ -662,7 +662,7 @@ static HRESULT WINAPI ThreadMgrSource_UnadviseSink(ITfSource *iface, DWORD pdwCo
|
|||
if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_TMSINK)
|
||||
return E_INVALIDARG;
|
||||
|
||||
sink = (ThreadMgrSink*)remove_Cookie(pdwCookie);
|
||||
sink = remove_Cookie(pdwCookie);
|
||||
if (!sink)
|
||||
return CONNECT_E_NOCONNECTION;
|
||||
|
||||
|
|
Loading…
Reference in New Issue