winedbg: Return after raising an exception.

Huw Davies huw at codeweavers.com
Fri Mar 17 16:40:31 CDT 2017


Fixes a compiler warning.

Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 programs/winedbg/types.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index 5b24715c28..2df7572271 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -80,11 +80,13 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
         {
             WINE_ERR("Couldn't get information\n");
             RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL);
+            return rtn;
         }
         if (size > sizeof(rtn))
         {
             WINE_ERR("Size too large (%s)\n", wine_dbgstr_longlong(size));
             RaiseException(DEBUG_STATUS_NOT_AN_INTEGER, 0, 0, NULL);
+            return rtn;
         }
         switch (bt)
         {
-- 
2.12.0




More information about the wine-patches mailing list