mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[KSUSER] Improve pointer arithmetics
This commit is contained in:
parent
944aba1fcc
commit
06e631fafe
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue