Commit ca8d5a79 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msvfw32: Remove superfluous pointer casts.

parent f927cfd2
...@@ -309,7 +309,7 @@ static LRESULT MCIWND_Create(HWND hWnd, LPCREATESTRUCTW cs) ...@@ -309,7 +309,7 @@ static LRESULT MCIWND_Create(HWND hWnd, LPCREATESTRUCTW cs)
/* MCI wnd class is prepared to be embedded as an MDI child window */ /* MCI wnd class is prepared to be embedded as an MDI child window */
if (cs->dwExStyle & WS_EX_MDICHILD) if (cs->dwExStyle & WS_EX_MDICHILD)
{ {
MDICREATESTRUCTW *mdics = (MDICREATESTRUCTW *)cs->lpCreateParams; MDICREATESTRUCTW *mdics = cs->lpCreateParams;
lParam = mdics->lParam; lParam = mdics->lParam;
} }
else else
......
...@@ -602,7 +602,7 @@ static void MSVIDEO_UnmapMsg16To32(UINT msg, LPVOID data16, LPDWORD lParam1, LPD ...@@ -602,7 +602,7 @@ static void MSVIDEO_UnmapMsg16To32(UINT msg, LPVOID data16, LPDWORD lParam1, LPD
case ICM_GETINFO: case ICM_GETINFO:
{ {
ICINFO *ici = (ICINFO*)(*lParam1); ICINFO *ici = (ICINFO*)(*lParam1);
ICINFO16 *ici16 = (ICINFO16*)data16; ICINFO16 *ici16 = data16;
UNCOPY(ici, fccType); UNCOPY(ici, fccType);
UNCOPY(ici, fccHandler); UNCOPY(ici, fccHandler);
......
...@@ -175,7 +175,7 @@ DWORD WINAPI VideoForWindowsVersion(void) ...@@ -175,7 +175,7 @@ DWORD WINAPI VideoForWindowsVersion(void)
static BOOL ICInfo_enum_handler(const char *drv, unsigned int nr, void *param) static BOOL ICInfo_enum_handler(const char *drv, unsigned int nr, void *param)
{ {
ICINFO *lpicinfo = (ICINFO *)param; ICINFO *lpicinfo = param;
DWORD fccHandler = mmioStringToFOURCCA(drv + 5, 0); DWORD fccHandler = mmioStringToFOURCCA(drv + 5, 0);
/* exact match of fccHandler or nth driver found */ /* exact match of fccHandler or nth driver found */
...@@ -521,7 +521,7 @@ static HIC try_driver(driver_info_t *info) ...@@ -521,7 +521,7 @@ static HIC try_driver(driver_info_t *info)
static BOOL ICLocate_enum_handler(const char *drv, unsigned int nr, void *param) static BOOL ICLocate_enum_handler(const char *drv, unsigned int nr, void *param)
{ {
driver_info_t *info = (driver_info_t *)param; driver_info_t *info = param;
info->fccHandler = mmioStringToFOURCCA(drv + 5, 0); info->fccHandler = mmioStringToFOURCCA(drv + 5, 0);
info->hic = try_driver(info); info->hic = try_driver(info);
return info->hic != 0; return info->hic != 0;
...@@ -1299,7 +1299,7 @@ HANDLE VFWAPI ICImageDecompress( ...@@ -1299,7 +1299,7 @@ HANDLE VFWAPI ICImageDecompress(
pHdr = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,cbHdr+sizeof(RGBQUAD)*256); pHdr = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,cbHdr+sizeof(RGBQUAD)*256);
if ( pHdr == NULL ) if ( pHdr == NULL )
goto err; goto err;
if ( ICDecompressGetFormat( hic, lpbiIn, (BITMAPINFO*)pHdr ) != ICERR_OK ) if ( ICDecompressGetFormat( hic, lpbiIn, pHdr ) != ICERR_OK )
goto err; goto err;
lpbiOut = (BITMAPINFO*)pHdr; lpbiOut = (BITMAPINFO*)pHdr;
if ( lpbiOut->bmiHeader.biBitCount <= 8 && if ( lpbiOut->bmiHeader.biBitCount <= 8 &&
...@@ -1337,7 +1337,7 @@ HANDLE VFWAPI ICImageDecompress( ...@@ -1337,7 +1337,7 @@ HANDLE VFWAPI ICImageDecompress(
WARN( "out of memory\n" ); WARN( "out of memory\n" );
goto err; goto err;
} }
pMem = (BYTE*)GlobalLock( hMem ); pMem = GlobalLock( hMem );
if ( pMem == NULL ) if ( pMem == NULL )
goto err; goto err;
memcpy( pMem, lpbiOut, cbHdr ); memcpy( pMem, lpbiOut, cbHdr );
...@@ -1368,7 +1368,7 @@ err: ...@@ -1368,7 +1368,7 @@ err:
*/ */
LPVOID VFWAPI ICSeqCompressFrame(PCOMPVARS pc, UINT uiFlags, LPVOID lpBits, BOOL *pfKey, LONG *plSize) LPVOID VFWAPI ICSeqCompressFrame(PCOMPVARS pc, UINT uiFlags, LPVOID lpBits, BOOL *pfKey, LONG *plSize)
{ {
ICCOMPRESS* icComp = (ICCOMPRESS *)pc->lpState; ICCOMPRESS* icComp = pc->lpState;
DWORD ret; DWORD ret;
TRACE("(%p, 0x%08x, %p, %p, %p)\n", pc, uiFlags, lpBits, pfKey, plSize); TRACE("(%p, 0x%08x, %p, %p, %p)\n", pc, uiFlags, lpBits, pfKey, plSize);
...@@ -1490,7 +1490,7 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn) ...@@ -1490,7 +1490,7 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
TRACE(" -- %x\n", ret); TRACE(" -- %x\n", ret);
if (ret == ICERR_OK) if (ret == ICERR_OK)
{ {
ICCOMPRESS* icComp = (ICCOMPRESS *)pc->lpState; ICCOMPRESS* icComp = pc->lpState;
/* Initialise some variables */ /* Initialise some variables */
pc->lFrame = 0; pc->lKeyCount = 0; pc->lFrame = 0; pc->lKeyCount = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment