Commit ed74088d authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

msctf: Correct index for being unable to pop last context. We need to leave one behind.

parent 846093ea
......@@ -167,7 +167,7 @@ static HRESULT WINAPI DocumentMgr_Pop(ITfDocumentMgr *iface, DWORD dwFlags)
if (dwFlags)
return E_INVALIDARG;
if (This->contextStack[0] == NULL) /* Cannot pop last context */
if (This->contextStack[1] == NULL) /* Cannot pop last context */
return E_FAIL;
ITfThreadMgrEventSink_OnPopContext(This->ThreadMgrSink,This->contextStack[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment