Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bdb54fda
Commit
bdb54fda
authored
May 20, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
May 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Generate TfEditCookies for edit sessions.
parent
a5006e7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
context.c
dlls/msctf/context.c
+15
-2
No files found.
dlls/msctf/context.c
View file @
bdb54fda
...
...
@@ -668,6 +668,8 @@ static HRESULT WINAPI TextStoreACPSink_OnLockGranted(ITextStoreACPSink *iface,
{
TextStoreACPSink
*
This
=
(
TextStoreACPSink
*
)
iface
;
HRESULT
hr
;
EditCookie
*
cookie
;
TfEditCookie
ec
;
TRACE
(
"(%p) %x
\n
"
,
This
,
dwLockFlags
);
...
...
@@ -677,12 +679,23 @@ static HRESULT WINAPI TextStoreACPSink_OnLockGranted(ITextStoreACPSink *iface,
return
E_FAIL
;
}
/* TODO: generate and use an edit cookie */
hr
=
ITfEditSession_DoEditSession
(
This
->
pContext
->
currentEditSession
,
0xdeadcafe
);
cookie
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
EditCookie
));
if
(
!
cookie
)
return
E_OUTOFMEMORY
;
cookie
->
lockType
=
dwLockFlags
;
cookie
->
pOwningContext
=
This
->
pContext
;
ec
=
generate_Cookie
(
COOKIE_MAGIC_EDITCOOKIE
,
cookie
);
hr
=
ITfEditSession_DoEditSession
(
This
->
pContext
->
currentEditSession
,
ec
);
ITfEditSession_Release
(
This
->
pContext
->
currentEditSession
);
This
->
pContext
->
currentEditSession
=
NULL
;
/* Edit Cookie is only valid during the edit session */
cookie
=
remove_Cookie
(
ec
);
HeapFree
(
GetProcessHeap
(),
0
,
cookie
);
return
hr
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment