msvfw32: Remove superfluous pointer casts.

This commit is contained in:
Michael Stefaniuc 2009-01-11 00:16:25 +01:00 committed by Alexandre Julliard
parent f927cfd26b
commit ca8d5a7922
3 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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);

View File

@ -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)
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(
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(
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:
*/ */
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)
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;