https://git.reactos.org/?p=reactos.git;a=commitdiff;h=774246e95c0df326464e5…
commit 774246e95c0df326464e59ad4a948c9dc8948d96
Author: Bernhard Feichtinger <43303168+BieHDC(a)users.noreply.github.com>
AuthorDate: Mon Apr 22 21:12:53 2019 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Jun 30 23:50:20 2019 +0200
[WIN32SS][GDI] Improve stub for EngQueryDeviceAttribute
---
win32ss/gdi/eng/stubs.c | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/win32ss/gdi/eng/stubs.c b/win32ss/gdi/eng/stubs.c
index 35f329209ad..29d5595d7fc 100644
--- a/win32ss/gdi/eng/stubs.c
+++ b/win32ss/gdi/eng/stubs.c
@@ -583,14 +583,25 @@ EngPlgBlt(
BOOL
APIENTRY
EngQueryDeviceAttribute(
- IN HDEV Device,
- IN ENG_DEVICE_ATTRIBUTE Attribute,
- IN VOID *In,
- IN ULONG InSize,
- OUT VOID *Out,
- OUT ULONG OutSize)
+ _In_ HDEV hdev,
+ _In_ ENG_DEVICE_ATTRIBUTE devAttr,
+ _In_reads_bytes_(cjInSize) PVOID pvIn,
+ _In_ ULONG cjInSize,
+ _Out_writes_bytes_(cjOutSize) PVOID pvOut,
+ _In_ ULONG cjOutSize)
{
+ if (devAttr != QDA_ACCELERATION_LEVEL)
+ return FALSE;
+
UNIMPLEMENTED;
+
+ if (cjOutSize >= sizeof(DWORD))
+ {
+ /* Set all accelerations to enabled */
+ *(DWORD*)pvOut = 0;
+ return TRUE;
+ }
+
return FALSE;
}