[PATCH] user32: Remove redundant check for buf's existence.
Alex Henrie
alexhenrie24 at gmail.com
Thu Nov 5 22:00:41 CST 2015
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
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;
--
2.6.2
More information about the wine-patches
mailing list