avifil32: Remove unneeded casts.
This commit is contained in:
parent
69599675a7
commit
ff92404dec
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue