[PATCH resend] ntoskrnl.exe: fix handling relocations on page boundary

Alexandre Julliard julliard at winehq.org
Tue Feb 5 04:04:18 CST 2019


RafaƂ H <rafalh92 at outlook.com> writes:

> -            /* make sure we don't try again */
> -            size = FIELD_OFFSET( IMAGE_NT_HEADERS, OptionalHeader ) + nt->FileHeader.SizeOfOptionalHeader;
> -            VirtualProtect( nt, size, PAGE_READWRITE, &old );
> -            nt->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC].VirtualAddress = 0;
> -            VirtualProtect( nt, size, old, &old );

You most likely need to keep that part.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list