[ros-diffs] [jimtabor] 41275: - More research is required to fix NtGdiSetPixelFormat, so removing disputed information.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Thu Jun 4 03:33:44 CEST 2009


Author: jimtabor
Date: Thu Jun  4 05:33:43 2009
New Revision: 41275

URL: http://svn.reactos.org/svn/reactos?rev=41275&view=rev
Log:
- More research is required to fix NtGdiSetPixelFormat, so removing disputed information.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/wingl.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/wingl.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/wingl.c?rev=41275&r1=41274&r2=41275&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/wingl.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/wingl.c [iso-8859-1] Thu Jun  4 05:33:43 2009
@@ -162,23 +162,14 @@
 
   ppdev = pdc->ppdev;
 
+  /*
+      WndObj is needed so exit on NULL pointer.
+   */
   if (pWndObj) pso = pWndObj->psoOwner;
   else
   {
      SetLastWin32Error(ERROR_INVALID_PIXEL_FORMAT);
      goto Exit;
-  }
-
-  if (!pso)
-  {
-  /*
-     Based on some rules! InfoDC to DC or, based on wiki information!
-     All pointers, it's a "must be!", (CONTAINING_RECORD +10h = SURFOBJ), the
-     pointer will start at SURFOBJ of the SURFACE structure. 
-   */
-     pso = (SURFOBJ *)pdc->dclevel.pSurface;
-     if (!pso) pso = pdc->pSurfInfo;
-     if (!pso) pso = ppdev->pSurface;
   }
 
   if (ppdev->flFlags & PDEV_META_DEVICE)



More information about the Ros-diffs mailing list