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

This commit is contained in:
Aric Stewart 2009-04-10 13:16:14 -05:00 committed by Alexandre Julliard
parent 846093ea26
commit ed74088d7d
1 changed files with 1 additions and 1 deletions

View File

@ -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]);