Module: wine Branch: master Commit: ed74088d7ddf0c389e7596237add7cb751b17a0a URL: http://source.winehq.org/git/wine.git/?a=commit;h=ed74088d7ddf0c389e7596237a...
Author: Aric Stewart aric@codeweavers.com Date: Fri Apr 10 13:16:14 2009 -0500
msctf: Correct index for being unable to pop last context. We need to leave one behind.
---
dlls/msctf/documentmgr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msctf/documentmgr.c b/dlls/msctf/documentmgr.c index 4ffd0b6..e1e5b19 100644 --- a/dlls/msctf/documentmgr.c +++ b/dlls/msctf/documentmgr.c @@ -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]);