Gerald Pfeifer : wordpad: Remove variable hwndPreview which is not really used from init_preview.

Alexandre Julliard julliard at winehq.org
Tue Apr 20 11:32:22 CDT 2010


Module: wine
Branch: master
Commit: 62871e0b7124c574ddc932b09eaf0e8840dabdaa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=62871e0b7124c574ddc932b09eaf0e8840dabdaa

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Mon Apr 19 18:48:04 2010 +0200

wordpad: Remove variable hwndPreview which is not really used from init_preview.

---

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

diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c
index 71c0627..226052e 100644
--- a/programs/wordpad/print.c
+++ b/programs/wordpad/print.c
@@ -789,7 +789,6 @@ static void update_scaled_preview(HWND hMainWnd)
 
 void init_preview(HWND hMainWnd, LPWSTR wszFileName)
 {
-    HWND hwndPreview;
     HINSTANCE hInstance = GetModuleHandleW(0);
     preview.page = 1;
     preview.hdc = 0;
@@ -799,7 +798,7 @@ void init_preview(HWND hMainWnd, LPWSTR wszFileName)
     preview.zoomlevel = 0;
     preview_bar_show(hMainWnd, TRUE);
 
-    hwndPreview = CreateWindowExW(0, wszPreviewWndClass, NULL,
+    CreateWindowExW(0, wszPreviewWndClass, NULL,
             WS_VISIBLE | WS_CHILD | WS_VSCROLL | WS_HSCROLL,
             0, 0, 200, 10, hMainWnd, (HMENU)IDC_PREVIEW, hInstance, NULL);
 }




More information about the wine-cvs mailing list