[8/8] shell32: Remove unused variable.

Dmitry Timoshkov dmitry at baikal.ru
Mon Oct 28 03:28:28 CDT 2013


---
 dlls/shell32/shell32_main.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c
index 1e37b47..ea5a344 100644
--- a/dlls/shell32/shell32_main.c
+++ b/dlls/shell32/shell32_main.c
@@ -318,7 +318,6 @@ static DWORD shgfi_get_exe_type(LPCWSTR szFullPath)
     DWORD BinaryType;
     IMAGE_DOS_HEADER mz_header;
     IMAGE_NT_HEADERS nt;
-    DWORD len;
     char magic[4];
 
     status = GetBinaryTypeW (szFullPath, &BinaryType);
@@ -341,14 +340,14 @@ static DWORD shgfi_get_exe_type(LPCWSTR szFullPath)
      */
 
     SetFilePointer( hfile, 0, NULL, SEEK_SET );
-    ReadFile( hfile, &mz_header, sizeof(mz_header), &len, NULL );
+    ReadFile( hfile, &mz_header, sizeof(mz_header), NULL, NULL );
 
     SetFilePointer( hfile, mz_header.e_lfanew, NULL, SEEK_SET );
-    ReadFile( hfile, magic, sizeof(magic), &len, NULL );
+    ReadFile( hfile, magic, sizeof(magic), NULL, NULL );
     if ( *(DWORD*)magic == IMAGE_NT_SIGNATURE )
     {
         SetFilePointer( hfile, mz_header.e_lfanew, NULL, SEEK_SET );
-        ReadFile( hfile, &nt, sizeof(nt), &len, NULL );
+        ReadFile( hfile, &nt, sizeof(nt), NULL, NULL );
         CloseHandle( hfile );
         /* DLL files are not executable and should return 0 */
         if (nt.FileHeader.Characteristics & IMAGE_FILE_DLL)
@@ -365,7 +364,7 @@ static DWORD shgfi_get_exe_type(LPCWSTR szFullPath)
     {
         IMAGE_OS2_HEADER ne;
         SetFilePointer( hfile, mz_header.e_lfanew, NULL, SEEK_SET );
-        ReadFile( hfile, &ne, sizeof(ne), &len, NULL );
+        ReadFile( hfile, &ne, sizeof(ne), NULL, NULL );
         CloseHandle( hfile );
         if (ne.ne_exetyp == 2)
             return IMAGE_OS2_SIGNATURE | (ne.ne_expver << 16);
-- 
1.8.4.1




More information about the wine-patches mailing list