static PPDEVOBJ gppdevList = NULL;
static HSEMAPHORE ghsemPDEV;
-INIT_FUNCTION
+CODE_SEG("INIT")
NTSTATUS
NTAPI
InitPDEVImpl(VOID)
}
else
{
+ ASSERT(gpPrimaryGraphicsDevice);
pGraphicsDevice = gpPrimaryGraphicsDevice;
}
if (ppdev)
{
/* Yes, reference the PDEV */
- InterlockedIncrement(&ppdev->cPdevRefs);
+ PDEVOBJ_vReference(ppdev);
}
else
{