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

avifil32: Avoid TRUE:FALSE conditional expressions.

parent af042f27
...@@ -1244,7 +1244,7 @@ static BOOL AVISaveOptionsFmtChoose(HWND hWnd) ...@@ -1244,7 +1244,7 @@ static BOOL AVISaveOptionsFmtChoose(HWND hWnd)
pOptions->dwFlags |= AVICOMPRESSF_VALID; pOptions->dwFlags |= AVICOMPRESSF_VALID;
HeapFree(GetProcessHeap(), 0, afmtc.pwfxEnum); HeapFree(GetProcessHeap(), 0, afmtc.pwfxEnum);
return (ret == S_OK ? TRUE : FALSE); return ret == S_OK;
} else { } else {
ERR(": unknown streamtype 0x%08X\n", sInfo.fccType); ERR(": unknown streamtype 0x%08X\n", sInfo.fccType);
return FALSE; return FALSE;
......
...@@ -307,8 +307,7 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface, ...@@ -307,8 +307,7 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface,
if (sInfo.fccType != streamtypeVIDEO) if (sInfo.fccType != streamtypeVIDEO)
return AVIERR_UNSUPPORTED; return AVIERR_UNSUPPORTED;
This->bFormatChanges = This->bFormatChanges = (sInfo.dwFlags & AVISTREAMINFO_FORMATCHANGES) != 0;
(sInfo.dwFlags & AVISTREAMINFO_FORMATCHANGES ? TRUE : FALSE );
This->dwFormatChangeCount = sInfo.dwFormatChangeCount; This->dwFormatChangeCount = sInfo.dwFormatChangeCount;
This->dwEditCount = sInfo.dwEditCount; This->dwEditCount = sInfo.dwEditCount;
This->lCurrentFrame = -1; This->lCurrentFrame = -1;
......
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