https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a4b0899ca167182b8b351…
commit a4b0899ca167182b8b35173231e93a8045f56f2c
Author: Oleg Dubinskiy <oleg.dubinskij30(a)gmail.com>
AuthorDate: Wed Aug 23 17:53:22 2023 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Aug 23 17:53:22 2023 +0200
[DXGTHK] Fix EngCreateBitmap exported parameters (#5606)
Use two longs instead of one for the first parameter of EngCreateBitmap export. Make
it same as win32k export.
MSDN documentation says that 1st parameter is SIZEL (SIZE) structure, which actually
contains 2 longs inside. Sice it is passed by value, it needs to take enough memory when
export in dxgthk and redirect to win32k (since it's actually a win32k function).
Fixes the compilation of our dxg.sys when calling dxgthk!EngCreateBitmap from it.
Found during my DirectX investigations.
---
win32ss/reactx/dxgthk/dxgthk.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/reactx/dxgthk/dxgthk.spec b/win32ss/reactx/dxgthk/dxgthk.spec
index a95e685a2da..481520bcd85 100644
--- a/win32ss/reactx/dxgthk/dxgthk.spec
+++ b/win32ss/reactx/dxgthk/dxgthk.spec
@@ -2,7 +2,7 @@
@ stdcall EngAllocMem(long long long) win32k.EngAllocMem
@ stdcall EngAllocUserMem(long long) win32k.EngAllocUserMem
@ stdcall EngCopyBits(ptr ptr ptr ptr ptr ptr) win32k.EngCopyBits
-@ stdcall EngCreateBitmap(long long long long ptr) win32k.EngCreateBitmap
+@ stdcall EngCreateBitmap(long long long long long ptr) win32k.EngCreateBitmap
@ stdcall EngCreatePalette(long long long long long long) win32k.EngCreatePalette
@ stdcall EngCreateSemaphore() win32k.EngCreateSemaphore
@ stdcall EngDeletePalette(ptr) win32k.EngDeletePalette