Commit 25f7ad44 authored by Ricardo Filipe's avatar Ricardo Filipe Committed by Alexandre Julliard

comdlg32: Removed dead assignments (llvm/clang).

parent 1c55ba0b
......@@ -166,7 +166,7 @@ int CC_RGBtoHSL(char c, int r, int g, int b)
else
{
result = mmdif * 240; /* 0...61200=255*240 */
result /= (mmsum > 255 ? mmsum = 510 - mmsum : mmsum); /* 0..255 */
result /= (mmsum > 255 ? 510 - mmsum : mmsum); /* 0..255 */
}
break;
/* hue */
......
......@@ -187,7 +187,7 @@ BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16 lpChFont)
if (lpChFont->Flags & CF_ENABLETEMPLATEHANDLE)
{
if (!(template = LockResource16( lpChFont->hInstance )))
if (!LockResource16( lpChFont->hInstance ))
{
COMDLG32_SetCommDlgExtendedError(CDERR_LOADRESFAILURE);
return FALSE;
......@@ -204,7 +204,7 @@ BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16 lpChFont)
return FALSE;
}
if (!(hDlgTmpl16 = LoadResource16( lpChFont->hInstance, hResInfo )) ||
!(template = LockResource16( hDlgTmpl16 )))
!LockResource16( hDlgTmpl16 ))
{
COMDLG32_SetCommDlgExtendedError(CDERR_LOADRESFAILURE);
return FALSE;
......
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