https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ded971c425ca139dd33c9…
commit ded971c425ca139dd33c972f2977938ae879ed13
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Jan 9 11:06:04 2022 +0100
Commit: hpoussin <32227662+hpoussin(a)users.noreply.github.com>
CommitDate: Fri Apr 15 23:09:16 2022 +0200
[WIN32SS] Remove useless parameter dwFlags in EngpFindGraphicsDevice()
---
win32ss/gdi/eng/device.c | 9 ++++-----
win32ss/gdi/eng/device.h | 3 +--
win32ss/gdi/eng/pdevobj.c | 2 +-
win32ss/user/ntuser/display.c | 4 ++--
win32ss/user/ntuser/winsta.c | 2 +-
5 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/win32ss/gdi/eng/device.c b/win32ss/gdi/eng/device.c
index 4f2284fa1e6..af1c57f2652 100644
--- a/win32ss/gdi/eng/device.c
+++ b/win32ss/gdi/eng/device.c
@@ -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);
diff --git a/win32ss/gdi/eng/device.h b/win32ss/gdi/eng/device.h
index c66e4cf0ad6..43a0dd6ebb3 100644
--- a/win32ss/gdi/eng/device.h
+++ b/win32ss/gdi/eng/device.h
@@ -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
diff --git a/win32ss/gdi/eng/pdevobj.c b/win32ss/gdi/eng/pdevobj.c
index 77b9a9fafc3..76e8dde0d14 100644
--- a/win32ss/gdi/eng/pdevobj.c
+++ b/win32ss/gdi/eng/pdevobj.c
@@ -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",
diff --git a/win32ss/user/ntuser/display.c b/win32ss/user/ntuser/display.c
index 81ed1bdb402..eb3365f0d33 100644
--- a/win32ss/user/ntuser/display.c
+++ b/win32ss/user/ntuser/display.c
@@ -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)
diff --git a/win32ss/user/ntuser/winsta.c b/win32ss/user/ntuser/winsta.c
index b6f5f5d1459..16e4f3c40b9 100644
--- a/win32ss/user/ntuser/winsta.c
+++ b/win32ss/user/ntuser/winsta.c
@@ -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);