https://git.reactos.org/?p=reactos.git;a=commitdiff;h=06e631fafec517ed5ee9d…
commit 06e631fafec517ed5ee9da196684be5052b4a311
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Thu Dec 28 18:35:30 2017 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu Aug 15 18:04:57 2019 +0200
[KSUSER] Improve pointer arithmetics
---
dll/directx/ksuser/ksuser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/directx/ksuser/ksuser.c b/dll/directx/ksuser/ksuser.c
index 12b54e96261..d59a84e8058 100644
--- a/dll/directx/ksuser/ksuser.c
+++ b/dll/directx/ksuser/ksuser.c
@@ -195,7 +195,7 @@ KsCreatePin(HANDLE FilterHandle,
PHANDLE ConnectionHandle)
{
ULONG BufferSize = sizeof(KSPIN_CONNECT);
- PKSDATAFORMAT DataFormat = ((PKSDATAFORMAT) ((ULONG_PTR)Connect +
sizeof(KSPIN_CONNECT)));
+ PKSDATAFORMAT DataFormat = (PKSDATAFORMAT)(Connect + 1);
BufferSize += DataFormat->FormatSize;