Question about contents of STARTUPINFO structure and non WinMain entry points

Eric Pouech eric.pouech at wanadoo.fr
Fri Nov 11 14:17:36 CST 2005


> 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 );


-- 
Eric Pouech




More information about the wine-devel mailing list