[DXG] DdHmgLock - use PLONG instead of PBYTE.
authorSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Thu, 16 Mar 2017 09:59:15 +0000 (09:59 +0000)
committerSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Thu, 16 Mar 2017 09:59:15 +0000 (09:59 +0000)
svn path=/trunk/; revision=74179

reactos/win32ss/reactx/dxg/ddhmg.c

index f698cd1..903ae19 100644 (file)
@@ -157,7 +157,7 @@ DdHmgLock(HANDLE DdHandle, UCHAR ObjectType, BOOLEAN LockOwned)
 
     if ( Index < gcMaxDdHmgr )
     {
-        pEntry = (PDD_ENTRY)((PBYTE)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
+        pEntry = (PDD_ENTRY)((PLONG)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
 
         if ( VerifyObjectOwner(pEntry) )
         {