Nikolay Sivov : oleaut32/olepicture: Fix a typo in height conversion.

Alexandre Julliard julliard at winehq.org
Wed Aug 25 12:35:05 CDT 2010


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Aug 24 22:29:12 2010 +0400

oleaut32/olepicture: Fix a typo in height conversion.

---

 dlls/oleaut32/olepicture.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 4dd25fb..bd93ffa 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -215,8 +215,8 @@ static void OLEPictureImpl_SetBitmap(OLEPictureImpl *This)
   /* Should we use GetBitmapDimension if available? */
   hdcRef = CreateCompatibleDC(0);
 
-  This->himetricWidth = xpixels_to_himetric(bm.bmWidth, hdcRef);
-  This->himetricHeight = xpixels_to_himetric(bm.bmHeight, hdcRef);
+  This->himetricWidth  = xpixels_to_himetric(bm.bmWidth, hdcRef);
+  This->himetricHeight = ypixels_to_himetric(bm.bmHeight, hdcRef);
 
   DeleteDC(hdcRef);
 }




More information about the wine-cvs mailing list