server: Store the process exe module in the standard dll list.
diff --git a/server/process.h b/server/process.h
index 02c3602..57dc7fb 100644
--- a/server/process.h
+++ b/server/process.h
@@ -75,7 +75,6 @@
obj_handle_t winstation; /* main handle to process window station */
obj_handle_t desktop; /* handle to desktop to use for new threads */
struct token *token; /* security token associated with this process */
- struct process_dll exe; /* main exe file */
struct list dlls; /* list of loaded dlls */
void *peb; /* PEB address in client address space */
void *ldt_copy; /* pointer to LDT copy in client addr space */
@@ -134,4 +133,10 @@
return process->startup_state == STARTUP_DONE;
}
+inline static struct process_dll *get_process_exe_module( struct process *process )
+{
+ struct list *ptr = list_head( &process->dlls );
+ return ptr ? LIST_ENTRY( ptr, struct process_dll, entry ) : NULL;
+}
+
#endif /* __WINE_SERVER_PROCESS_H */