Remove variable i which is not really used from OnCommand.

Gerald Pfeifer gerald at pfeifer.com
Sat Apr 24 07:09:26 CDT 2010


---
 programs/wordpad/wordpad.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index d5f9af5..af1b24d 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -2244,12 +2244,12 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
     case ID_EDIT_DEFCHARFORMAT:
         {
         CHARFORMAT2W cf;
-        LRESULT i;
+
         ZeroMemory(&cf, sizeof(cf));
         cf.cbSize = sizeof(cf);
         cf.dwMask = 0;
-        i = SendMessageW(hwndEditor, EM_GETCHARFORMAT,
-                        LOWORD(wParam) == ID_EDIT_CHARFORMAT, (LPARAM)&cf);
+        SendMessageW(hwndEditor, EM_GETCHARFORMAT,
+                     LOWORD(wParam) == ID_EDIT_CHARFORMAT, (LPARAM)&cf);
         return 0;
         }
 
-- 
1.6.6.2



More information about the wine-patches mailing list