Read to 0x7ffe02c0
Vitaliy Margolen
wine-devel at kievinfo.com
Tue Aug 22 06:13:35 CDT 2006
Tuesday, August 22, 2006, 1:56:20 AM, Juan Lang wrote:
> --- Vitaliy Margolen <wine-devel at kievinfo.com> wrote:
>> 0x7ffe0000 is KSHARED_USER_DATA and 0x2c0 is (not even sure how to get
>> what is at this offset). You can see it's declaration in
>> include/ddk/wdm.h
> Thanks Vitaliy. So this is supposed to be a boolean for some processor
> feature? I guess it doesn't matter what it contains, the problem is the
> address isn't mapped. Any idea what to do about that? I notice your
> patch[1] wasn't applied, but it doesn't apply cleanly anymore.
Because Wine already reserves it but doesn't allocates it. All you need to
do is to change this: http://source.winehq.org/source/dlls/ntdll/thread.c#L218
to look like:
NtAllocateVirtualMemory( NtCurrentProcess(), &addr, 0, &size, MEM_RESERVE
| MEM_COMMIT, PAGE_READONLY );
Vitaliy.
More information about the wine-devel
mailing list