mirror of
https://github.com/reactos/reactos.git
synced 2024-06-21 05:21:31 +00:00
[WIN32SS] Remove useless parameter dwFlags in EngpFindGraphicsDevice()
This commit is contained in:
parent
75f4be53df
commit
ded971c425
|
@ -80,7 +80,7 @@ EngpUpdateGraphicsDeviceList(VOID)
|
|||
RtlInitUnicodeString(&ustrDeviceName, awcWinDeviceName);
|
||||
|
||||
/* Check if the device exists already */
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(&ustrDeviceName, iDevNum, 0);
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(&ustrDeviceName, iDevNum);
|
||||
if (pGraphicsDevice != NULL)
|
||||
{
|
||||
continue;
|
||||
|
@ -387,14 +387,13 @@ PGRAPHICS_DEVICE
|
|||
NTAPI
|
||||
EngpFindGraphicsDevice(
|
||||
_In_opt_ PUNICODE_STRING pustrDevice,
|
||||
_In_ ULONG iDevNum,
|
||||
_In_ DWORD dwFlags)
|
||||
_In_ ULONG iDevNum)
|
||||
{
|
||||
UNICODE_STRING ustrCurrent;
|
||||
PGRAPHICS_DEVICE pGraphicsDevice;
|
||||
ULONG i;
|
||||
TRACE("EngpFindGraphicsDevice('%wZ', %lu, 0x%lx)\n",
|
||||
pustrDevice, iDevNum, dwFlags);
|
||||
TRACE("EngpFindGraphicsDevice('%wZ', %lu)\n",
|
||||
pustrDevice, iDevNum);
|
||||
|
||||
/* Lock list */
|
||||
EngAcquireSemaphore(ghsemGraphicsDeviceList);
|
||||
|
|
|
@ -23,8 +23,7 @@ PGRAPHICS_DEVICE
|
|||
NTAPI
|
||||
EngpFindGraphicsDevice(
|
||||
_In_opt_ PUNICODE_STRING pustrDevice,
|
||||
_In_ ULONG iDevNum,
|
||||
_In_ DWORD dwFlags);
|
||||
_In_ ULONG iDevNum);
|
||||
|
||||
PGRAPHICS_DEVICE
|
||||
NTAPI
|
||||
|
|
|
@ -313,7 +313,7 @@ EngpCreatePDEV(
|
|||
/* Try to find the GRAPHICS_DEVICE */
|
||||
if (pustrDeviceName)
|
||||
{
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(pustrDeviceName, 0, 0);
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(pustrDeviceName, 0);
|
||||
if (!pGraphicsDevice)
|
||||
{
|
||||
DPRINT1("No GRAPHICS_DEVICE found for %ls!\n",
|
||||
|
|
|
@ -253,7 +253,7 @@ UserEnumDisplayDevices(
|
|||
}
|
||||
|
||||
/* Ask gdi for the GRAPHICS_DEVICE */
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(pustrDevice, iDevNum, 0);
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(pustrDevice, iDevNum);
|
||||
if (!pGraphicsDevice)
|
||||
{
|
||||
/* No device found */
|
||||
|
@ -423,7 +423,7 @@ UserEnumDisplaySettings(
|
|||
pustrDevice, iModeNum);
|
||||
|
||||
/* Ask GDI for the GRAPHICS_DEVICE */
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(pustrDevice, 0, 0);
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(pustrDevice, 0);
|
||||
ppdev = EngpGetPDEV(pustrDevice);
|
||||
|
||||
if (!pGraphicsDevice || !ppdev)
|
||||
|
|
|
@ -335,7 +335,7 @@ co_IntInitializeDesktopGraphics(VOID)
|
|||
HDC hdc;
|
||||
ULONG iDevNum;
|
||||
|
||||
for (iDevNum = 1; (pGraphicsDevice = EngpFindGraphicsDevice(NULL, iDevNum, 0)) != NULL; iDevNum++)
|
||||
for (iDevNum = 1; (pGraphicsDevice = EngpFindGraphicsDevice(NULL, iDevNum)) != NULL; iDevNum++)
|
||||
{
|
||||
RtlInitUnicodeString(&DisplayName, pGraphicsDevice->szWinDeviceName);
|
||||
hdc = IntGdiCreateDC(&DriverName, &DisplayName, NULL, NULL, FALSE);
|
||||
|
|
Loading…
Reference in a new issue