[ros-diffs] [jgardou] 46528: [WIN32K] More PDEVOBJ_vRelease fun

jgardou at svn.reactos.org jgardou at svn.reactos.org
Mon Mar 29 00:09:45 CEST 2010


Author: jgardou
Date: Mon Mar 29 00:09:45 2010
New Revision: 46528

URL: http://svn.reactos.org/svn/reactos?rev=46528&view=rev
Log:
[WIN32K]
More PDEVOBJ_vRelease fun

Modified:
    branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c

Modified: branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c
URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c?rev=46528&r1=46527&r2=46528&view=diff
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] (original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] Mon Mar 29 00:09:45 2010
@@ -176,7 +176,7 @@
                                         QueryTable,
                                         NULL,
                                         NULL);
-        
+
         if (!dwVgaCompatible)
         {
             /* This driver is not a vga driver */
@@ -243,7 +243,7 @@
     UNREFERENCED_PARAMETER(Context);
     UNREFERENCED_PARAMETER(EntryContext);
 
-    DPRINT1("DisplayDriverQueryRoutine(%S, %S);\n", 
+    DPRINT1("DisplayDriverQueryRoutine(%S, %S);\n",
             ValueName, pwszRegKey);
 
     /* Check if we have a correct entry */
@@ -408,7 +408,7 @@
     PUNICODE_STRING pustrDevice,
     DWORD iDevNum,
     PDISPLAY_DEVICEW pDisplayDevice,
-    DWORD dwFlags) 		
+    DWORD dwFlags)
 {
     UNICODE_STRING ustrDevice;
     WCHAR awcDevice[CCHDEVICENAME];
@@ -511,7 +511,8 @@
     }
 
     *ppdm = ppdev->pdmwDev;
-    
+    PDEVOBJ_vRelease(ppdev);
+
     return STATUS_SUCCESS;
 }
 
@@ -772,7 +773,7 @@
         {
             DPRINT1("Could not open registry key\n");
             lResult = DISP_CHANGE_NOTUPDATED;
-        }       
+        }
     }
 
     /* Check if DEVMODE matches the current mode */
@@ -788,16 +789,16 @@
         if (!PDEVOBJ_bSwitchMode(ppdev, pdm))
         {
             DPRINT1("failed to set mode\n");
-            lResult = (lResult == DISP_CHANGE_NOTUPDATED) ? 
+            lResult = (lResult == DISP_CHANGE_NOTUPDATED) ?
                 DISP_CHANGE_FAILED : DISP_CHANGE_RESTART;
         }
-        
+
         /* Send message */
-        
+
     }
 
 leave:
-//    PDEVOBJ_vReleasePdev(ppdev);
+    PDEVOBJ_vRelease(ppdev);
 
     return lResult;
 }




More information about the Ros-diffs mailing list