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

This commit is contained in:
Alexandre Julliard 2010-06-08 11:55:23 +02:00
parent 2b99e1c17d
commit 28e1398237
1 changed files with 2 additions and 0 deletions

View File

@ -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,