mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
user32: Remove redundant check for buf's existence.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4a3065c5d7
commit
6771fa22e9
1 changed files with 2 additions and 3 deletions
|
@ -2577,7 +2577,7 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, LPCWSTR lpsz_replac
|
|||
LPWSTR p;
|
||||
HRGN hrgn = 0;
|
||||
LPWSTR buf = NULL;
|
||||
UINT bufl = 0;
|
||||
UINT bufl;
|
||||
|
||||
TRACE("%s, can_undo %d, send_update %d\n",
|
||||
debugstr_w(lpsz_replace), can_undo, send_update);
|
||||
|
@ -2726,7 +2726,6 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, LPCWSTR lpsz_replac
|
|||
EDIT_EM_EmptyUndoBuffer(es);
|
||||
}
|
||||
|
||||
if (bufl)
|
||||
HeapFree(GetProcessHeap(), 0, buf);
|
||||
|
||||
s += strl;
|
||||
|
|
Loading…
Reference in a new issue