[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    comdlg32: Unreachable code fix
From:       Andrew Talbot <andrew.talbot () talbotville ! com>
Date:       2008-12-31 18:50:13
Message-ID: 200812311850.14119.andrew.talbot () talbotville ! com
[Download RAW message or body]

In the existing code, the "goto" is not required, and its presence prevents the
following "break" from being reached.

-- Andy.
---
Changelog:
   comdlg32: Unreachable code fix.

diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index e1eedd1..386a201 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -2205,7 +2205,6 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
           ret = EndDialog(hwnd, FALSE);
           COMDLG32_SetCommDlgExtendedError(FNERR_BUFFERTOOSMALL);
         }
-        goto ret;
       }
       break;
   }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic