Alex Henrie : ntdll: Remove unnecessary call to strlen from get_dos_device.

Alexandre Julliard julliard at winehq.org
Fri Dec 11 15:06:37 CST 2020


Module: wine
Branch: master
Commit: 7c61b303eb9837c738253c1d458526f2175f1fd8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7c61b303eb9837c738253c1d458526f2175f1fd8

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Thu Dec 10 22:18:18 2020 -0700

ntdll: Remove unnecessary call to strlen from get_dos_device.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/file.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
index 6d6edfe8926..a4c6bf4a137 100644
--- a/dlls/ntdll/unix/file.c
+++ b/dlls/ntdll/unix/file.c
@@ -2812,7 +2812,6 @@ static NTSTATUS get_dos_device( const WCHAR *name, UINT name_len, char **unix_na
         if (!new_name) break;
         free( unix_name );
         unix_name = new_name;
-        unix_len = strlen(unix_name) + 1;
         dev = NULL; /* last try */
     }
     free( unix_name );




More information about the wine-cvs mailing list