Author: tkreuzer
Date: Mon May 12 10:12:43 2008
New Revision: 33472
URL:
http://svn.reactos.org/svn/reactos?rev=33472&view=rev
Log:
convert another pointer calculations to FIELD_OFFSET macro and use "%p" instead
of casting pointers to long
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c [iso-8859-1] Mon May 12 10:12:43
2008
@@ -909,7 +909,7 @@
DPRINT1("0x%08lx ????? PEDD_DIRECTDRAW_GLOBAL->d3dNtHalCallbacks3
: 0x%08lx\n",FIELD_OFFSET(EDD_DIRECTDRAW_GLOBAL,
d3dNtHalCallbacks3),pEddgbl->d3dNtHalCallbacks3);
DPRINT1("0x%08lx ????? PEDD_DIRECTDRAW_GLOBAL->unk_544
: 0x%08lx\n",FIELD_OFFSET(EDD_DIRECTDRAW_GLOBAL, unk_544),
pEddgbl->unk_544);
DPRINT1("0x%08lx ????? PEDD_DIRECTDRAW_GLOBAL->unk_548
: 0x%08lx\n",FIELD_OFFSET(EDD_DIRECTDRAW_GLOBAL, unk_548),
pEddgbl->unk_548);
- DPRINT1("0x%08lx ????? PEDD_DIRECTDRAW_GLOBAL->unk_54c[0]
: 0x%08lx\n",( ( (DWORD)&pEddgbl->unk_54c[0] ) -
(DWORD)pEddgbl),pEddgbl->unk_54c[0]);
+ DPRINT1("0x%08lx ????? PEDD_DIRECTDRAW_GLOBAL->unk_54c[0]
: 0x%08lx\n",FIELD_OFFSET(EDD_DIRECTDRAW_GLOBAL,
unk_54c[0]),pEddgbl->unk_54c[0]);
DPRINT1("0x%08lx ????? PEDD_DIRECTDRAW_GLOBAL->unk_54c[1]
: 0x%08lx\n",FIELD_OFFSET(EDD_DIRECTDRAW_GLOBAL,
unk_54c[1]),pEddgbl->unk_54c[1]);
DPRINT1("0x%08lx ????? PEDD_DIRECTDRAW_GLOBAL->unk_54c[2]
: 0x%08lx\n",FIELD_OFFSET(EDD_DIRECTDRAW_GLOBAL,
unk_54c[2]),pEddgbl->unk_54c[2]);
DPRINT1("0x%08lx ????? PEDD_DIRECTDRAW_GLOBAL->unk_54c[3]
: 0x%08lx\n",FIELD_OFFSET(EDD_DIRECTDRAW_GLOBAL,
unk_54c[3]),pEddgbl->unk_54c[3]);
@@ -1083,7 +1083,7 @@
DPRINT1(" pHalInfo4->vmiData->dwTextureAlign :
0x%08lx\n",(long)pHalInfo4->vmiData.dwTextureAlign);
DPRINT1(" pHalInfo4->vmiData->dwZBufferAlign :
0x%08lx\n",(long)pHalInfo4->vmiData.dwZBufferAlign);
DPRINT1(" pHalInfo4->vmiData->dwAlphaAlign :
0x%08lx\n",(long)pHalInfo4->vmiData.dwAlphaAlign);
- DPRINT1(" pHalInfo4->vmiData->pvPrimary :
0x%08lx\n",(long)pHalInfo4->vmiData.pvPrimary);
+ DPRINT1(" pHalInfo4->vmiData->pvPrimary :
0x%p\n",pHalInfo4->vmiData.pvPrimary);
DPRINT1(" pHalInfo4->ddCaps.dwSize :
0x%08lx\n",pHalInfo4->ddCaps.dwSize);
DPRINT1(" pHalInfo4->ddCaps.dwCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwCaps);
@@ -1151,7 +1151,7 @@
DPRINT1(" pHalInfo4->ddCaps.dwSVBCaps2 :
0x%08lx\n",pHalInfo4->ddCaps.dwSVBCaps2);
- DPRINT1(" pHalInfo4->GetDriverInfo :
0x%08lx\n",(long)pHalInfo4->GetDriverInfo);
+ DPRINT1(" pHalInfo4->GetDriverInfo :
0x%p\n",pHalInfo4->GetDriverInfo);
DPRINT1(" pHalInfo4->dwFlags :
0x%08lx\n",(long)pHalInfo4->dwFlags);
}
@@ -1185,7 +1185,7 @@
DPRINT1(" pHalInfo->vmiData->dwTextureAlign :
0x%08lx\n",(long)pHalInfo->vmiData.dwTextureAlign);
DPRINT1(" pHalInfo->vmiData->dwZBufferAlign :
0x%08lx\n",(long)pHalInfo->vmiData.dwZBufferAlign);
DPRINT1(" pHalInfo->vmiData->dwAlphaAlign :
0x%08lx\n",(long)pHalInfo->vmiData.dwAlphaAlign);
- DPRINT1(" pHalInfo->vmiData->pvPrimary :
0x%08lx\n",(long)pHalInfo->vmiData.pvPrimary);
+ DPRINT1(" pHalInfo->vmiData->pvPrimary :
0x%p\n",pHalInfo->vmiData.pvPrimary);
DPRINT1(" pHalInfo->ddCaps.dwSize :
0x%08lx\n",pHalInfo->ddCaps.dwSize);
DPRINT1(" pHalInfo->ddCaps.dwCaps : ");
@@ -1482,7 +1482,7 @@
DPRINT1(" pHalInfo->ddCaps.dwSSBRops[0x%04x] :
0x%08lx\n",t,pHalInfo->ddCaps.dwSSBRops[t]);
}
- DPRINT1(" pHalInfo->GetDriverInfo :
0x%08lx\n",(long)pHalInfo->GetDriverInfo);
+ DPRINT1(" pHalInfo->GetDriverInfo :
0x%p\n",pHalInfo->GetDriverInfo);
DPRINT1(" pHalInfo->dwFlags : ");
flag = pHalInfo->dwFlags;
@@ -1493,9 +1493,9 @@
checkflag(flag,DDHALINFO_GETDRIVERINFO2,"DDHALINFO_GETDRIVERINFO2");
endcheckflag(flag,"pHalInfo->dwFlags");
- DPRINT1(" pHalInfo->lpD3DGlobalDriverData :
0x%08lx\n",(long)pHalInfo->lpD3DGlobalDriverData);
- DPRINT1(" pHalInfo->lpD3DHALCallbacks :
0x%08lx\n",(long)pHalInfo->lpD3DHALCallbacks);
- DPRINT1(" pHalInfo->lpD3DBufCallbacks :
0x%08lx\n",(long)pHalInfo->lpD3DBufCallbacks);
+ DPRINT1(" pHalInfo->lpD3DGlobalDriverData :
0x%p\n",pHalInfo->lpD3DGlobalDriverData);
+ DPRINT1(" pHalInfo->lpD3DHALCallbacks :
0x%p\n",pHalInfo->lpD3DHALCallbacks);
+ DPRINT1(" pHalInfo->lpD3DBufCallbacks :
0x%p\n",pHalInfo->lpD3DBufCallbacks);
}
else
{