Author: sgasiorek
Date: Sat Jun 24 12:14:01 2017
New Revision: 75179
URL:
http://svn.reactos.org/svn/reactos?rev=75179&view=rev
Log:
[DXG] Replace wrong PLONG with PBYTE as it was in original development. CORE-13392
Modified:
trunk/reactos/win32ss/reactx/dxg/ddhmg.c
Modified: trunk/reactos/win32ss/reactx/dxg/ddhmg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/reactx/dxg/ddhmg.c…
==============================================================================
--- trunk/reactos/win32ss/reactx/dxg/ddhmg.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/reactx/dxg/ddhmg.c [iso-8859-1] Sat Jun 24 12:14:01 2017
@@ -158,7 +158,7 @@
if ( Index < gcMaxDdHmgr )
{
- pEntry = (PDD_ENTRY)((PLONG)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
+ pEntry = (PDD_ENTRY)((PBYTE)gpentDdHmgr + (sizeof(DD_ENTRY) * Index));
if ( VerifyObjectOwner(pEntry) )
{
@@ -276,7 +276,7 @@
if (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
ghFreeDdHmgr = pEntry->NextFree;
@@ -303,7 +303,7 @@
gpentDdHmgr = mAllocMem;
}
- pEntry = (PDD_ENTRY)((PLONG)gpentDdHmgr + (sizeof(DD_ENTRY) * gcMaxDdHmgr));
+ pEntry = (PDD_ENTRY)((PBYTE)gpentDdHmgr + (sizeof(DD_ENTRY) * gcMaxDdHmgr));
// build handle
pEntry->FullUnique = objType | 8;
@@ -357,7 +357,7 @@
{
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->Objt = objType;
@@ -408,7 +408,7 @@
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
if (pEntry->pobj)