Fix so startup process of ddraw hal can be compile with visualstudio
Modified: trunk/reactos/lib/ddraw/hal/ddraw_hal.c
_____
Modified: trunk/reactos/lib/ddraw/hal/ddraw_hal.c
--- trunk/reactos/lib/ddraw/hal/ddraw_hal.c 2005-10-30 23:54:05 UTC
(rev 18903)
+++ trunk/reactos/lib/ddraw/hal/ddraw_hal.c 2005-10-31 00:10:04 UTC
(rev 18904)
@@ -58,13 +58,13 @@
return DD_FALSE;
}
- This->HalInfo.vmiData.pvmList = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
+ This->HalInfo.vmiData.pvmList = (LPVIDMEM)
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(VIDMEM) *
This->HalInfo.vmiData.dwNumHeaps);
- This->DirectDrawGlobal.lpdwFourCC = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
+ This->DirectDrawGlobal.lpdwFourCC = (DWORD *)
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(DWORD)
* This->HalInfo.ddCaps.dwNumFourCCCodes);
((LPD3DHAL_GLOBALDRIVERDATA)This->DirectDrawGlobal.lpD3DGlobalDriverData
)->lpTextureFormats =
- HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(DDSURFACEDESC) *
+ (LPDDSURFACEDESC) HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY, sizeof(DDSURFACEDESC) *
((LPD3DHAL_GLOBALDRIVERDATA)This->DirectDrawGlobal.lpD3DGlobalDriverData
)->dwNumTextureFormats);
if(!DdQueryDirectDrawObject (
@@ -285,7 +285,7 @@
/* Get the ZPixelFormats */
- This->DirectDrawGlobal.lpZPixelFormats =
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
+ This->DirectDrawGlobal.lpZPixelFormats = (LPDDPIXELFORMAT)
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(DDPIXELFORMAT) * This->DirectDrawGlobal.dwNumZPixelFormats);
DriverInfo.guidInfo = GUID_ZPixelFormats;
DriverInfo.lpvData =
(PVOID)This->DirectDrawGlobal.lpZPixelFormats;
Show replies by date