Alexandre Julliard : ntdll: Set a valid process title for the initial process.

Alexandre Julliard julliard at winehq.org
Tue Jun 8 10:08:21 CDT 2010


Module: wine
Branch: master
Commit: 28e13982370fbe4b281679542f6cab80d0de871b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=28e13982370fbe4b281679542f6cab80d0de871b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun  8 11:55:23 2010 +0200

ntdll: Set a valid process title for the initial process.

---

 dlls/ntdll/loader.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 74e873b..4a2641b 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -2639,6 +2639,8 @@ void WINAPI LdrInitializeThunk( void *kernel_start, ULONG_PTR unknown2,
 
     peb->LoaderLock = &loader_section;
     peb->ProcessParameters->ImagePathName = wm->ldr.FullDllName;
+    if (!peb->ProcessParameters->WindowTitle.Buffer)
+        peb->ProcessParameters->WindowTitle = wm->ldr.FullDllName;
     version_init( wm->ldr.FullDllName.Buffer );
 
     LdrQueryImageFileExecutionOptions( &peb->ProcessParameters->ImagePathName, globalflagW,




More information about the wine-cvs mailing list