[PATCH] kernel32: Make loading the main exe visible in +process

Detlef Riekenberg wine.dev at web.de
Sun Oct 17 16:50:45 CDT 2010


---
 dlls/kernel32/process.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index fdd19db..5de447b 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -1123,7 +1123,10 @@ void CDECL __wine_kernel_init(void)
         set_additional_environment();
     }
 
-    if (!(peb->ImageBaseAddress = LoadLibraryExW( main_exe_name, 0, DONT_RESOLVE_DLL_REFERENCES )))
+    TRACE("Loading main_exe: %s\n", debugstr_w(main_exe_name));
+    peb->ImageBaseAddress = LoadLibraryExW( main_exe_name, 0, DONT_RESOLVE_DLL_REFERENCES );
+    TRACE("main_exe has ImageBaseAddress %p\n", peb->ImageBaseAddress);
+    if (!peb->ImageBaseAddress)
     {
         DWORD_PTR args[1];
         WCHAR msgW[1024];
-- 
1.7.1




More information about the wine-patches mailing list