mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
ExtendedTools: fixed casting
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4883 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -242,7 +242,7 @@ PETP_GPU_ADAPTER EtpAllocateGpuAdapter(
|
||||
SIZE_T sizeNeeded;
|
||||
|
||||
sizeNeeded = FIELD_OFFSET(ETP_GPU_ADAPTER, ApertureBitMapBuffer);
|
||||
sizeNeeded += ((NumberOfSegments + sizeof(ULONG) * 8 - 1) / 8) & ~(sizeof(ULONG) - 1); // divide round up
|
||||
sizeNeeded += ((NumberOfSegments + sizeof(ULONG) * 8 - 1) / 8) & ~(SIZE_T)(sizeof(ULONG) - 1); // divide round up
|
||||
|
||||
adapter = PhAllocate(sizeNeeded);
|
||||
memset(adapter, 0, sizeNeeded);
|
||||
|
||||
Reference in New Issue
Block a user