Author: sserapion
Date: Sun Dec 14 18:30:46 2008
New Revision: 38091
URL:
http://svn.reactos.org/svn/reactos?rev=38091&view=rev
Log:
Fix some 64bit portability issues.
Modified:
branches/ros-amd64-bringup/reactos/include/psdk/vfw.h
Modified: branches/ros-amd64-bringup/reactos/include/psdk/vfw.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/psdk/vfw.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/psdk/vfw.h [iso-8859-1] Sun Dec 14 18:30:46
2008
@@ -1071,14 +1071,14 @@
ICGetDefaultQuality(HIC hic)
{
DWORD dwICValue;
- ICSendMessage(hic, ICM_GETDEFAULTQUALITY, (DWORD)(LPVOID)&dwICValue,
sizeof(DWORD));
+ ICSendMessage(hic, ICM_GETDEFAULTQUALITY, (DWORD_PTR)(LPVOID)&dwICValue,
sizeof(DWORD));
return dwICValue;
}
static __inline DWORD
ICGetDefaultKeyFrameRate(HIC hic)
{
DWORD dwICValue;
- ICSendMessage(hic, ICM_GETDEFAULTKEYFRAMERATE, (DWORD)(LPVOID)&dwICValue,
sizeof(DWORD));
+ ICSendMessage(hic, ICM_GETDEFAULTKEYFRAMERATE, (DWORD_PTR)(LPVOID)&dwICValue,
sizeof(DWORD));
return dwICValue;
}
static __inline LRESULT
@@ -1092,7 +1092,7 @@
ic.dxDst = dxDst;
ic.dyDst = dyDst;
ic.hicDecompressor = hicDecomp;
- return ICSendMessage(hic,ICM_DRAW_SUGGESTFORMAT,(DWORD)&ic,sizeof(ic));
+ return ICSendMessage(hic,ICM_DRAW_SUGGESTFORMAT,(DWORD_PTR)&ic,sizeof(ic));
}
static __inline LRESULT
ICSetStatusProc(HIC hic,DWORD dwFlags,LRESULT lParam,LONG (CALLBACK
*fpfnStatus)(LPARAM,UINT,LONG))
@@ -1101,7 +1101,7 @@
ic.dwFlags = dwFlags;
ic.lParam = lParam;
ic.Status = fpfnStatus;
- return ICSendMessage(hic,ICM_SET_STATUS_PROC,(DWORD)&ic,sizeof(ic));
+ return ICSendMessage(hic,ICM_SET_STATUS_PROC,(DWORD_PTR)&ic,sizeof(ic));
}
static __inline LRESULT
ICDecompressEx(HIC hic,DWORD dwFlags,LPBITMAPINFOHEADER lpbiSrc,LPVOID lpSrc,INT xSrc,INT
ySrc,INT dxSrc,INT dySrc,LPBITMAPINFOHEADER lpbiDst,LPVOID lpDst,INT xDst,INT yDst,INT
dxDst,INT dyDst)
@@ -1120,7 +1120,7 @@
ic.yDst = yDst;
ic.dxDst = dxDst;
ic.dyDst = dyDst;
- return ICSendMessage(hic,ICM_DECOMPRESSEX,(DWORD)&ic,sizeof(ic));
+ return ICSendMessage(hic,ICM_DECOMPRESSEX,(DWORD_PTR)&ic,sizeof(ic));
}
static __inline LRESULT
ICDecompressExBegin(HIC hic,DWORD dwFlags,LPBITMAPINFOHEADER lpbiSrc,LPVOID lpSrc,INT
xSrc,INT ySrc,INT dxSrc,INT dySrc,LPBITMAPINFOHEADER lpbiDst,LPVOID lpDst,INT xDst,INT
yDst,INT dxDst,INT dyDst)
@@ -1139,7 +1139,7 @@
ic.yDst = yDst;
ic.dxDst = dxDst;
ic.dyDst = dyDst;
- return ICSendMessage(hic,ICM_DECOMPRESSEX_BEGIN,(DWORD)&ic,sizeof(ic));
+ return ICSendMessage(hic,ICM_DECOMPRESSEX_BEGIN,(DWORD_PTR)&ic,sizeof(ic));
}
static __inline LRESULT
ICDecompressExQuery(HIC hic,DWORD dwFlags,LPBITMAPINFOHEADER lpbiSrc,LPVOID lpSrc,INT
xSrc,INT ySrc,INT dxSrc,INT dySrc,LPBITMAPINFOHEADER lpbiDst,LPVOID lpDst,INT xDst,INT
yDst,INT dxDst,INT dyDst)
@@ -1158,7 +1158,7 @@
ic.yDst = yDst;
ic.dxDst = dxDst;
ic.dyDst = dyDst;
- return ICSendMessage(hic,ICM_DECOMPRESSEX_QUERY,(DWORD)&ic,sizeof(ic));
+ return ICSendMessage(hic,ICM_DECOMPRESSEX_QUERY,(DWORD_PTR)&ic,sizeof(ic));
}
#ifdef UNICODE