dlls/ntdll/directory.c fix around assert(0);

Gerald Pfeifer gerald at pfeifer.com
Sat Mar 6 15:39:37 CST 2010


This is basically the same that Alexandre made in a similiar case a
couple of days ago, so I hope it's fine here, too. ;-)

Gerald

ChangeLog:
Avoid compiler warning in the default case in append_entry.

diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index ecd9418..1883435 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -1120,6 +1120,7 @@ static union file_directory_info *append_entry( void *info_ptr, IO_STATUS_BLOCK
 
     default:
         assert(0);
+        return info;
     }
     memcpy( filename, long_nameW, total_len - ((char *)filename - (char *)info) );
     io->Information += total_len;



More information about the wine-patches mailing list