[PATCH 4/3] cmd: Avoid endless loop

Detlef Riekenberg wine.dev at web.de
Tue Dec 14 22:20:41 CST 2010


Opps. I removed to much code during cleanup

--
By by ... Detlef
---
 programs/cmd/builtins.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 43e6c0d..fd217ae 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -252,6 +252,10 @@ void WCMD_choice (WCHAR * command) {
                 ptr = WCMD_strtrim_leading_spaces(ptr);
                 break;
 
+            default:
+                WINE_FIXME("bad parameter %s\n", wine_dbgstr_w(ptr));
+                HeapFree(GetProcessHeap(), 0, my_command);
+                return;
         }
     }
 
-- 
1.7.1




More information about the wine-patches mailing list