[GDI32]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 22 Nov 2010 23:18:59 +0000 (23:18 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 22 Nov 2010 23:18:59 +0000 (23:18 +0000)
Don't make the wrong assumption that POINT and POINTL are identical.

svn path=/trunk/; revision=49714

reactos/dll/win32/gdi32/objects/coord.c
reactos/dll/win32/gdi32/objects/dc.c

index 93381e7..8661085 100644 (file)
@@ -255,7 +255,7 @@ GetViewportExtEx(
 
   if ((Dc_Attr->flXform & PAGE_EXTENTS_CHANGED) && (Dc_Attr->iMapMode == MM_ISOTROPIC))
      // Something was updated, go to kernel.
-     return NtGdiGetDCPoint( hdc, GdiGetViewPortExt, (LPPOINT) lpSize );
+     return NtGdiGetDCPoint( hdc, GdiGetViewPortExt, (PPOINTL) lpSize );
   else
   {
      lpSize->cx = Dc_Attr->szlViewportExt.cx;
index eb9dcf2..7693dcc 100644 (file)
@@ -746,7 +746,7 @@ GetAspectRatioFilterEx(
                 LPSIZE lpAspectRatio
                       )
 {
-  return NtGdiGetDCPoint( hdc, GdiGetAspectRatioFilter, (LPPOINT) lpAspectRatio );
+  return NtGdiGetDCPoint( hdc, GdiGetAspectRatioFilter, (PPOINTL) lpAspectRatio );
 }
 
 
@@ -760,7 +760,7 @@ GetDCOrgEx(
     LPPOINT lpPoint
     )
 {
-  return NtGdiGetDCPoint( hdc, GdiGetDCOrg, lpPoint );
+  return NtGdiGetDCPoint( hdc, GdiGetDCOrg, (PPOINTL)lpPoint );
 }