[ros-diffs] [greatlrd] 32557: Fixed smaller bug in DdCreateSurface callbacks the surface handle count was setup wrong before it was pass down to win32k

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun Mar 9 12:33:13 CET 2008


Author: greatlrd
Date: Tue Mar  4 08:43:56 2008
New Revision: 32557

URL: http://svn.reactos.org/svn/reactos?rev=3D32557&view=3Drev
Log:
Fixed smaller bug in DdCreateSurface callbacks the surface handle count was=
 setup wrong before it was pass down to win32k

Modified:
    trunk/reactos/dll/win32/gdi32/misc/gdientry.c

Modified: trunk/reactos/dll/win32/gdi32/misc/gdientry.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/=
gdientry.c?rev=3D32557&r1=3D32556&r2=3D32557&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/dll/win32/gdi32/misc/gdientry.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/gdientry.c Tue Mar  4 08:43:56 2008
@@ -108,10 +108,10 @@
    =

     /* Auto flip off or on */
     if (Flip->dwFlags & DDFLIP_STEREO )
-    {      =

+    {
         if ( (Flip->lpSurfTargLeft) &&
              (Flip->lpSurfCurrLeft))
-        {         =

+        {
             /* Auto flip on */
             hSurfaceTargetLeft =3D (HANDLE) Flip->lpSurfTargLeft->hDDSurfa=
ce;
             hSurfaceCurrentLeft =3D (HANDLE) Flip->lpSurfCurrLeft->hDDSurf=
ace;
@@ -419,13 +419,18 @@
                                sizeof(DDPIXELFORMAT));
             }
 =

+            /* Note if lcl->lpSurfMore is NULL zero out =

+             * ptmpDdSurfaceMore->ddsCapsEx.dwCaps2,
+             * dwCaps3, dwCaps4, ptmpDdSurfaceMore->dwSurfaceHandle =

+             */
             if (lcl->lpSurfMore)
             {
                 ptmpDdSurfaceMore->ddsCapsEx.dwCaps2 =3D lcl->lpSurfMore->=
ddsCapsEx.dwCaps2;
                 ptmpDdSurfaceMore->ddsCapsEx.dwCaps3 =3D lcl->lpSurfMore->=
ddsCapsEx.dwCaps3;
                 ptmpDdSurfaceMore->ddsCapsEx.dwCaps4 =3D lcl->lpSurfMore->=
ddsCapsEx.dwCaps4;
-                ptmpDdSurfaceMore->dwSurfaceHandle =3D (DWORD) pCreateSurf=
ace->lplpSList[i]->dbnOverlayNode.object_int;
-            }
+                ptmpDdSurfaceMore->dwSurfaceHandle =3D lcl->lpSurfMore->dw=
SurfaceHandle;
+            }
+
 =

             /* count to next SurfaceCount */
             ptmpDdSurfaceGlobal =3D (PDD_SURFACE_GLOBAL) (((PBYTE) ((ULONG=
_PTR) ptmpDdSurfaceGlobal)) + sizeof(DD_SURFACE_GLOBAL));




More information about the Ros-diffs mailing list