krnl386.exe16: Remove unused switch default clause (Coverity)

Frédéric Delanoy frederic.delanoy at gmail.com
Thu Nov 24 11:14:34 CST 2011


CID 1474

Function exits earlier (around line 990) for non-covered values
---
 dlls/krnl386.exe16/int21.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/krnl386.exe16/int21.c b/dlls/krnl386.exe16/int21.c
index f8e235a..25db40c 100644
--- a/dlls/krnl386.exe16/int21.c
+++ b/dlls/krnl386.exe16/int21.c
@@ -1122,8 +1122,6 @@ static BOOL INT21_CreateFile( CONTEXT *context,
         case CREATE_ALWAYS:
             dosStatus = (GetLastError() == ERROR_ALREADY_EXISTS) ? 3 : 2;
             break;
-        default:
-            dosStatus = 0;
         }
     }
 
-- 
1.7.7.2




More information about the wine-patches mailing list