mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[WIN32SS] Rename PDEVOBJ_vSwitchPdev to PDEVOBJ_bDynamicModeChange
Even if it currently always succeeds, let it return a boolean for later.
This commit is contained in:
parent
241e579dfa
commit
34085be22d
2 changed files with 16 additions and 3 deletions
|
@ -430,9 +430,9 @@ SwitchPointer(
|
|||
*ppvPointer2 = pvTemp;
|
||||
}
|
||||
|
||||
VOID
|
||||
BOOL
|
||||
NTAPI
|
||||
PDEVOBJ_vSwitchPdev(
|
||||
PDEVOBJ_bDynamicModeChange(
|
||||
PPDEVOBJ ppdev,
|
||||
PPDEVOBJ ppdev2)
|
||||
{
|
||||
|
@ -481,6 +481,8 @@ PDEVOBJ_vSwitchPdev(
|
|||
/* Notify each driver instance of its new HDEV association */
|
||||
ppdev->pfn.CompletePDEV(ppdev->dhpdev, (HDEV)ppdev);
|
||||
ppdev2->pfn.CompletePDEV(ppdev2->dhpdev, (HDEV)ppdev2);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
@ -536,7 +538,12 @@ PDEVOBJ_bSwitchMode(
|
|||
/* 6. Copy old PDEV state to new PDEV instance */
|
||||
|
||||
/* 7. Switch the PDEVs */
|
||||
PDEVOBJ_vSwitchPdev(ppdev, ppdevTmp);
|
||||
if (!PDEVOBJ_bDynamicModeChange(ppdev, ppdevTmp))
|
||||
{
|
||||
DPRINT1("PDEVOBJ_bDynamicModeChange() failed\n");
|
||||
PDEVOBJ_vRelease(ppdevTmp);
|
||||
goto leave2;
|
||||
}
|
||||
|
||||
/* 8. Disable DirectDraw */
|
||||
|
||||
|
|
|
@ -213,4 +213,10 @@ PDEVOBJ_bSwitchMode(
|
|||
PPDEVOBJ ppdev,
|
||||
PDEVMODEW pdm);
|
||||
|
||||
BOOL
|
||||
NTAPI
|
||||
PDEVOBJ_bDynamicModeChange(
|
||||
_Inout_ PPDEVOBJ ppdev,
|
||||
_Inout_ PPDEVOBJ ppdev2);
|
||||
|
||||
#endif /* !__WIN32K_PDEVOBJ_H */
|
||||
|
|
Loading…
Reference in a new issue