wordpad: Remove bogus ';' after the if statement.

Michael Stefaniuc mstefani at redhat.de
Thu Mar 27 10:32:35 CDT 2008


This fixes the gcc warning:
programs/wordpad/print.c:632: warning: empty body in an if-statement
---
 programs/wordpad/print.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c
index 187a9ec..2a44132 100644
--- a/programs/wordpad/print.c
+++ b/programs/wordpad/print.c
@@ -629,7 +629,7 @@ void draw_preview_page(HDC hdc, HDC* hdcSized, FORMATRANGE* lpFr, float ratio, i
     int LeftMargin = (int)((float)twips_to_pixels(lpFr->rc.left, GetDeviceCaps(hdc, LOGPIXELSY)) * ratio);
     int RightMargin = (int)((float)twips_to_pixels(lpFr->rc.right, GetDeviceCaps(hdc, LOGPIXELSY)) * ratio);
 
-    if(*hdcSized);
+    if(*hdcSized)
         DeleteDC(*hdcSized);
     *hdcSized = CreateCompatibleDC(hdc);
     SelectObject(*hdcSized, hBitmapScaled);
-- 
1.5.4.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080327/7a628296/attachment.pgp 


More information about the wine-patches mailing list