Alex Henrie : user32: Remove redundant check for buf's existence.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Nov 6 09:06:33 CST 2015
Module: wine
Branch: master
Commit: 6771fa22e9e0558425047da00486cab9b9f80c4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6771fa22e9e0558425047da00486cab9b9f80c4f
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Thu Nov 5 21:00:41 2015 -0700
user32: Remove redundant check for buf's existence.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/edit.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 4570073..488141b 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -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,8 +2726,7 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, LPCWSTR lpsz_replac
EDIT_EM_EmptyUndoBuffer(es);
}
- if (bufl)
- HeapFree(GetProcessHeap(), 0, buf);
+ HeapFree(GetProcessHeap(), 0, buf);
s += strl;
More information about the wine-cvs
mailing list