Alexandre Julliard : kernelbase: Fix variable name aliasing issue.

Alexandre Julliard julliard at winehq.org
Mon Oct 21 15:28:36 CDT 2019


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Oct 19 15:23:32 2019 +0200

kernelbase: Fix variable name aliasing issue.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernelbase/loader.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/kernelbase/loader.c b/dlls/kernelbase/loader.c
index 5b70dfd874..456a9f2da4 100644
--- a/dlls/kernelbase/loader.c
+++ b/dlls/kernelbase/loader.c
@@ -114,12 +114,12 @@ static BOOL load_library_as_datafile( LPCWSTR load_path, DWORD flags, LPCWSTR na
 
         if (flags & LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE)
         {
-            struct exclusive_datafile *file = HeapAlloc( GetProcessHeap(), 0, sizeof(*file) );
-            if (!file) goto failed;
-            file->module = *mod_ret;
-            file->file   = file;
-            list_add_head( &exclusive_datafile_list, &file->entry );
-            TRACE( "delaying close %p for module %p\n", file->file, file->module );
+            struct exclusive_datafile *datafile = HeapAlloc( GetProcessHeap(), 0, sizeof(*datafile) );
+            if (!datafile) goto failed;
+            datafile->module = *mod_ret;
+            datafile->file   = file;
+            list_add_head( &exclusive_datafile_list, &datafile->entry );
+            TRACE( "delaying close %p for module %p\n", datafile->file, datafile->module );
             return TRUE;
         }
     }




More information about the wine-cvs mailing list