[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Mon, 28 Jul 2014 13:03:19 +0000 (13:03 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Mon, 28 Jul 2014 13:03:19 +0000 (13:03 +0000)
 - Pass the right arguments to the driver-supplied function when deleting a DRIVEROBJ

svn path=/trunk/; revision=63748

reactos/win32ss/gdi/eng/driverobj.c

index fff1dda..5f1b96b 100644 (file)
@@ -29,7 +29,7 @@ DRIVEROBJ_vCleanup(PVOID pObject)
     pFreeProc = pedo->drvobj.pFreeProc;
     if (pFreeProc)
     {
-        NT_VERIFY(pFreeProc(pedo->drvobj.pvObj));
+        NT_VERIFY(pFreeProc(&pedo->drvobj));
     }
 }
 
@@ -88,7 +88,7 @@ EngDeleteDriverObj(
     /* Manually call cleanup callback */
     if (bCallBack)
     {
-        if (!pedo->drvobj.pFreeProc(pedo->drvobj.pvObj))
+        if (!pedo->drvobj.pFreeProc(&pedo->drvobj))
         {
             /* Callback failed */
             DRIVEROBJ_UnlockObject(pedo);