user32: remove dead initializations (clang)

André Hentschel nerv at dawncrow.de
Tue Jul 5 14:37:39 CDT 2011


---
 dlls/user32/edit.c       |    4 ++--
 dlls/user32/tests/menu.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 8f59d95..87f8682 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -2063,8 +2063,8 @@ static INT EDIT_PaintText(EDITSTATE *es, HDC dc, INT x, INT y, INT line, INT col
  */
 static void EDIT_PaintLine(EDITSTATE *es, HDC dc, INT line, BOOL rev)
 {
-	INT s = es->selection_start;
-	INT e = es->selection_end;
+	INT s;
+	INT e;
 	INT li;
 	INT ll;
 	INT x;
diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c
index e29039a..823e19e 100644
--- a/dlls/user32/tests/menu.c
+++ b/dlls/user32/tests/menu.c
@@ -1082,7 +1082,7 @@ static void test_menu_iteminfo( void )
   void *txt, *init, *empty, *string;
   HBITMAP hbm = CreateBitmap(1,1,1,1,NULL);
   char stringA[0x80];
-  HMENU hmenu, submenu=CreateMenu();
+  HMENU hmenu, submenu;
   HBITMAP dummy_hbm = (HBITMAP)(ULONG_PTR)0xdeadbeef;
 
   do {
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list