Paul Vriens : comdlg32: Remove unused variable (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 13 06:32:29 CST 2006


Module: wine
Branch: master
Commit: 646139dd6ed64b7a38fc99ef33b0253063a9ec4f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=646139dd6ed64b7a38fc99ef33b0253063a9ec4f

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Sun Nov 12 18:50:25 2006 +0100

comdlg32: Remove unused variable (Coverity).

---

 dlls/comdlg32/fontdlg16.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/comdlg32/fontdlg16.c b/dlls/comdlg32/fontdlg16.c
index 4b13c2d..c5f11df 100644
--- a/dlls/comdlg32/fontdlg16.c
+++ b/dlls/comdlg32/fontdlg16.c
@@ -164,7 +164,7 @@ INT16 WINAPI FontStyleEnumProc16( SEGPTR
 BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16 lpChFont)
 {
     HINSTANCE16 hInst;
-    HANDLE16 hDlgTmpl16 = 0, hResource16 = 0;
+    HANDLE16 hDlgTmpl16 = 0;
     HGLOBAL16 hGlobal16 = 0;
     BOOL16 bRet = FALSE;
     LPVOID template;
@@ -255,7 +255,6 @@ BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT1
     hInst = GetWindowLongPtrA(HWND_32(lpChFont->hwndOwner), GWLP_HINSTANCE);
     bRet = DialogBoxIndirectParam16(hInst, hDlgTmpl16, lpChFont->hwndOwner,
                      (DLGPROC16) ptr, (DWORD)lpChFont);
-    if (hResource16) FreeResource16(hDlgTmpl16);
     if (hGlobal16)
     {
         GlobalUnlock16(hGlobal16);




More information about the wine-cvs mailing list