[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[pkg-wine-party] [SCM] Debian Wine packaging branch, wheezy, updated. wine-1.4-7-302-gb61b690



The following commit has been merged in the wheezy branch:
commit f12fded0bde97681e3e92604f28bbaef423952ef
Author: Henri Verbeet <hverbeet@codeweavers.com>
Date:   Tue Apr 3 21:15:11 2012 +0200

    ntdll: Use the copy of the section headers for applying memory protections as well in map_image().
    (cherry picked from commit f1651e9208f51dcc8ebf599e8675bbf869541130)

diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 450a1fb..7c2b1a9 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1348,7 +1348,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
 
     VIRTUAL_SetProt( view, ptr, ROUND_SIZE( 0, header_size ), VPROT_COMMITTED | VPROT_READ );
 
-    sec = (IMAGE_SECTION_HEADER*)((char *)&nt->OptionalHeader+nt->FileHeader.SizeOfOptionalHeader);
+    sec = sections;
     for (i = 0; i < nt->FileHeader.NumberOfSections; i++, sec++)
     {
         SIZE_T size;

-- 
Debian Wine packaging



Reply to: