mirror of
https://github.com/reactos/reactos.git
synced 2025-05-01 19:50:36 +00:00
[COMCTL32][USER32] Edit: Don't unlock if unlocked on EM_SETHANDLE (#7886)
JIRA issue: CORE-18944 EDIT_EM_GetHandle unlocks the handle, so the next EM_SETHANDLE handler shouldn't unlock the unlocked text. Don't unlock the handle when es->text was NULL on EM_SETHANDLE message handling.
This commit is contained in:
parent
860262952d
commit
94fc56c038
2 changed files with 6 additions and 0 deletions
|
@ -2715,6 +2715,9 @@ static void EDIT_EM_SetHandle(EDITSTATE *es, HLOCAL hloc)
|
||||||
if (!hloc)
|
if (!hloc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if (es->text)
|
||||||
|
#endif
|
||||||
EDIT_UnlockBuffer(es, TRUE);
|
EDIT_UnlockBuffer(es, TRUE);
|
||||||
|
|
||||||
es->hloc32W = hloc;
|
es->hloc32W = hloc;
|
||||||
|
|
|
@ -2898,6 +2898,9 @@ static void EDIT_EM_SetHandle(EDITSTATE *es, HLOCAL hloc)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if (es->text)
|
||||||
|
#endif
|
||||||
EDIT_UnlockBuffer(es, TRUE);
|
EDIT_UnlockBuffer(es, TRUE);
|
||||||
|
|
||||||
if(es->is_unicode)
|
if(es->is_unicode)
|
||||||
|
|
Loading…
Reference in a new issue