[WIN32K] Code formatting.

This commit is contained in:
Hermès Bélusca-Maïto 2019-11-24 21:19:14 +01:00
parent 75f188c200
commit 0ad90f83d3
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 24 additions and 24 deletions

View file

@ -51,8 +51,8 @@ EngpPopulateDeviceModeList(
* This is a REG_MULTI_SZ string */
for (; *pwsz; pwsz += wcslen(pwsz) + 1)
{
TRACE("trying driver: %ls\n", pwsz);
/* Try to load the display driver */
TRACE("Trying driver: %ls\n", pwsz);
pldev = EngLoadImageEx(pwsz, LDEV_DEVICE_DISPLAY);
if (!pldev)
{
@ -186,14 +186,14 @@ EngpRegisterGraphicsDevice(
return NULL;
}
/* Try to open the driver */
/* Try to open and enable the device */
Status = IoGetDeviceObjectPointer(pustrDeviceName,
FILE_READ_DATA | FILE_WRITE_DATA,
&pFileObject,
&pDeviceObject);
if (!NT_SUCCESS(Status))
{
ERR("Could not open driver %wZ, 0x%lx\n", pustrDeviceName, Status);
ERR("Could not open device %wZ, 0x%lx\n", pustrDeviceName, Status);
ExFreePoolWithTag(pGraphicsDevice, GDITAG_GDEVICE);
return NULL;
}
@ -225,13 +225,13 @@ EngpRegisterGraphicsDevice(
return NULL;
}
/* Copy display driver names */
/* Copy the display driver names */
pGraphicsDevice->pDiplayDrivers = pwsz;
RtlCopyMemory(pGraphicsDevice->pDiplayDrivers,
pustrDiplayDrivers->Buffer,
pustrDiplayDrivers->Length);
/* Copy description */
/* Copy the description */
pGraphicsDevice->pwszDescription = pwsz + pustrDiplayDrivers->Length / sizeof(WCHAR);
RtlCopyMemory(pGraphicsDevice->pwszDescription,
pustrDescription->Buffer,
@ -265,7 +265,7 @@ EngpRegisterGraphicsDevice(
if (!gpGraphicsDeviceFirst)
gpGraphicsDeviceFirst = pGraphicsDevice;
/* Increment device number */
/* Increment the device number */
giDevNum++;
/* Unlock loader */
@ -275,7 +275,6 @@ EngpRegisterGraphicsDevice(
return pGraphicsDevice;
}
PGRAPHICS_DEVICE
NTAPI
EngpFindGraphicsDevice(
@ -321,7 +320,6 @@ EngpFindGraphicsDevice(
return pGraphicsDevice;
}
static
NTSTATUS
EngpFileIoRequest(

View file

@ -90,14 +90,14 @@ PDEVOBJ_vDeletePDEV(
VOID
NTAPI
PDEVOBJ_vRelease(PPDEVOBJ ppdev)
PDEVOBJ_vRelease(
_Inout_ PPDEVOBJ ppdev)
{
/* Lock loader */
EngAcquireSemaphore(ghsemPDEV);
/* Decrease reference count */
--ppdev->cPdevRefs;
InterlockedDecrement(&ppdev->cPdevRefs);
ASSERT(ppdev->cPdevRefs >= 0);
/* Check if references are left */
@ -126,7 +126,9 @@ PDEVOBJ_vRelease(PPDEVOBJ ppdev)
/* Remove it from list */
if (ppdev == gppdevList)
{
gppdevList = ppdev->ppdevNext;
}
else
{
PPDEVOBJ ppdevCurrent = gppdevList;
@ -152,7 +154,6 @@ PDEVOBJ_vRelease(PPDEVOBJ ppdev)
/* Unlock loader */
EngReleaseSemaphore(ghsemPDEV);
}
BOOL
@ -348,6 +349,7 @@ EngpCreatePDEV(
{
PGRAPHICS_DEVICE pGraphicsDevice;
PPDEVOBJ ppdev;
DPRINT("EngpCreatePDEV(%wZ, %p)\n", pustrDeviceName, pdm);
/* Try to find the GRAPHICS_DEVICE */

View file

@ -674,6 +674,7 @@ NtUserEnumDisplaySettings(
return Status;
}
VOID
UserUpdateFullscreen(
DWORD flags)
@ -1012,4 +1013,3 @@ NtUserChangeDisplaySettings(
return lRet;
}