avifil32: Remove unneeded casts.

This commit is contained in:
Andrew Talbot 2007-12-29 15:37:24 +00:00 committed by Alexandre Julliard
parent 69599675a7
commit ff92404dec
3 changed files with 4 additions and 4 deletions

View File

@ -1509,7 +1509,7 @@ BOOL WINAPI AVISaveOptions(HWND hWnd, UINT uFlags, INT nStreams,
HeapFree(GetProcessHeap(), 0, pSavedOptions);
}
return (BOOL)ret;
return ret;
}
/***********************************************************************

View File

@ -1795,7 +1795,7 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This)
if (str == NULL)
return AVIERR_MEMORY;
if (mmioRead(This->hmmio, (HPSTR)str, ck.cksize) != ck.cksize)
if (mmioRead(This->hmmio, str, ck.cksize) != ck.cksize)
{
HeapFree(GetProcessHeap(), 0, str);
return AVIERR_FILEREAD;
@ -2249,7 +2249,7 @@ static HRESULT AVIFILE_SaveFile(IAVIFileImpl *This)
WideCharToMultiByte(CP_ACP, 0, pStream->sInfo.szName, -1, str,
ck.cksize, NULL, NULL);
if (mmioWrite(This->hmmio, (HPSTR)str, ck.cksize) != ck.cksize) {
if (mmioWrite(This->hmmio, str, ck.cksize) != ck.cksize) {
HeapFree(GetProcessHeap(), 0, str);
return AVIERR_FILEWRITE;
}

View File

@ -209,7 +209,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hInstDll);
AVIFILE_hModule = (HMODULE)hInstDll;
AVIFILE_hModule = hInstDll;
break;
case DLL_PROCESS_DETACH:
break;