ntdll: make shared user data access work

Alexandre Julliard julliard at winehq.org
Wed Aug 9 04:28:58 CDT 2006


Robert Reif <reif at earthlink.net> writes:

> diff -p -u -r1.66 thread.c
> --- dlls/ntdll/thread.c	26 Jul 2006 14:01:20 -0000	1.66
> +++ dlls/ntdll/thread.c	6 Aug 2006 01:15:43 -0000
> @@ -215,7 +215,7 @@ HANDLE thread_init(void)
>  
>      addr = (void *)0x7ffe0000;
>      size = 0x10000;
> -    NtAllocateVirtualMemory( NtCurrentProcess(), &addr, 0, &size, MEM_RESERVE, PAGE_READONLY );
> +    NtAllocateVirtualMemory( NtCurrentProcess(), &addr, 0, &size, MEM_RESERVE | MEM_COMMIT, PAGE_READONLY);

This code is only intended to reserve the space at startup. We need to
initialize it properly later on before making it accessible.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list