mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 23:18:39 +00:00
[DXG] Replace wrong PLONG with PBYTE as it was in original development. CORE-13392
svn path=/trunk/; revision=75179
This commit is contained in:
parent
1c5588d156
commit
fa50e67d23
1 changed files with 5 additions and 5 deletions
|
@ -158,7 +158,7 @@ DdHmgLock(HANDLE DdHandle, UCHAR ObjectType, BOOLEAN LockOwned)
|
||||||
|
|
||||||
if ( Index < gcMaxDdHmgr )
|
if ( Index < gcMaxDdHmgr )
|
||||||
{
|
{
|
||||||
pEntry = (PDD_ENTRY)((PLONG)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
|
pEntry = (PDD_ENTRY)((PBYTE)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
|
||||||
|
|
||||||
if ( VerifyObjectOwner(pEntry) )
|
if ( VerifyObjectOwner(pEntry) )
|
||||||
{
|
{
|
||||||
|
@ -276,7 +276,7 @@ DdGetFreeHandle(UCHAR objType)
|
||||||
if (ghFreeDdHmgr)
|
if (ghFreeDdHmgr)
|
||||||
{
|
{
|
||||||
index = ghFreeDdHmgr;
|
index = ghFreeDdHmgr;
|
||||||
pEntry = (PDD_ENTRY)((PLONG)gpentDdHmgr + (sizeof(DD_ENTRY) * index));
|
pEntry = (PDD_ENTRY)((PBYTE)gpentDdHmgr + (sizeof(DD_ENTRY) * index));
|
||||||
|
|
||||||
// put next free index to our global variable
|
// put next free index to our global variable
|
||||||
ghFreeDdHmgr = pEntry->NextFree;
|
ghFreeDdHmgr = pEntry->NextFree;
|
||||||
|
@ -303,7 +303,7 @@ DdGetFreeHandle(UCHAR objType)
|
||||||
gpentDdHmgr = mAllocMem;
|
gpentDdHmgr = mAllocMem;
|
||||||
}
|
}
|
||||||
|
|
||||||
pEntry = (PDD_ENTRY)((PLONG)gpentDdHmgr + (sizeof(DD_ENTRY) * gcMaxDdHmgr));
|
pEntry = (PDD_ENTRY)((PBYTE)gpentDdHmgr + (sizeof(DD_ENTRY) * gcMaxDdHmgr));
|
||||||
|
|
||||||
// build handle
|
// build handle
|
||||||
pEntry->FullUnique = objType | 8;
|
pEntry->FullUnique = objType | 8;
|
||||||
|
@ -357,7 +357,7 @@ DdHmgAlloc(ULONG objSize, CHAR objType, BOOLEAN objLock)
|
||||||
{
|
{
|
||||||
Index = DDHMG_HTOI(DdHandle);
|
Index = DDHMG_HTOI(DdHandle);
|
||||||
|
|
||||||
pEntry = (PDD_ENTRY)((PLONG)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
|
pEntry = (PDD_ENTRY)((PBYTE)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
|
||||||
|
|
||||||
pEntry->pobj = pObject;
|
pEntry->pobj = pObject;
|
||||||
pEntry->Objt = objType;
|
pEntry->Objt = objType;
|
||||||
|
@ -408,7 +408,7 @@ DdHmgFree(HANDLE DdHandle)
|
||||||
|
|
||||||
EngAcquireSemaphore(ghsemHmgr);
|
EngAcquireSemaphore(ghsemHmgr);
|
||||||
|
|
||||||
pEntry = (PDD_ENTRY)((PLONG)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
|
pEntry = (PDD_ENTRY)((PBYTE)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
|
||||||
|
|
||||||
// check if we have object that should be freed
|
// check if we have object that should be freed
|
||||||
if (pEntry->pobj)
|
if (pEntry->pobj)
|
||||||
|
|
Loading…
Reference in a new issue