Commit ff92404d authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

avifil32: Remove unneeded casts.

parent 69599675
......@@ -1509,7 +1509,7 @@ BOOL WINAPI AVISaveOptions(HWND hWnd, UINT uFlags, INT nStreams,
HeapFree(GetProcessHeap(), 0, pSavedOptions);
}
return (BOOL)ret;
return ret;
}
/***********************************************************************
......
......@@ -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;
}
......
......@@ -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;
......
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