From 25f7ad44e5cbd1a7d8aaaba7e10c905b2b3cfd2c Mon Sep 17 00:00:00 2001 From: Ricardo Filipe Date: Mon, 24 Nov 2008 23:19:52 +0000 Subject: [PATCH] comdlg32: Removed dead assignments (llvm/clang). --- dlls/comdlg32/colordlg.c | 2 +- dlls/comdlg32/fontdlg16.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/comdlg32/colordlg.c b/dlls/comdlg32/colordlg.c index 4baa2619f8..d4a43af761 100644 --- a/dlls/comdlg32/colordlg.c +++ b/dlls/comdlg32/colordlg.c @@ -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 */ diff --git a/dlls/comdlg32/fontdlg16.c b/dlls/comdlg32/fontdlg16.c index 9a85729644..c7be1d393d 100644 --- a/dlls/comdlg32/fontdlg16.c +++ b/dlls/comdlg32/fontdlg16.c @@ -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; -- 2.32.0.93.g670b81a890