Yeah, it works. :) Thanks!
James
On Fri, 2005-11-11 at 21:17 +0100, Eric Pouech wrote:
I tried modifying the RTL_USER_PROCESS_PARAMATERS settings after creation in dlls/ntdll/thread.c (in thread_init, right after the structure is allocated,) but that didn't work. So I put the change in dlls/kernel/process.c, at the end of build_initial_environment, and that worked. But it seems a little out of place there. Do you think such a change stands a chance of getting into CVS?
does the attached patch work ? (warning: lines may be wrapped) diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c index cb07fe9..caa3f5a 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c @@ -122,6 +122,7 @@ void thread_init(void) peb.LdrData = &ldr; params.CurrentDirectory.DosPath.Buffer = current_dir; params.CurrentDirectory.DosPath.MaximumLength = sizeof(current_dir);
- params.wShowWindow = 1; /* SW_SHOWNORMAL */ RtlInitializeBitMap( &tls_bitmap, peb.TlsBitmapBits,
sizeof(peb.TlsBitmapBits) * 8 ); RtlInitializeBitMap( &tls_expansion_bitmap, peb.TlsExpansionBitmapBits, sizeof(peb.TlsExpansionBitmapBits) * 8 );