]> Git Repo - qemu.git/blobdiff - vl.c
vl: Remove unneeded include file
[qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index 9379d335ac4c7e43f519b2afaeaddf8e4ff8295b..bf61910485b9f433566c3b150cf92b9bb38e7218 100644 (file)
--- a/vl.c
+++ b/vl.c
 #include <libvdeplug.h>
 #endif
 
-#ifdef _WIN32
-#include <windows.h>
-#endif
-
 #ifdef CONFIG_SDL
 #if defined(__APPLE__) || defined(main)
 #include <SDL.h>
@@ -2827,6 +2823,7 @@ int main(int argc, char **argv, char **envp)
 
     atexit(qemu_run_exit_notifiers);
     error_set_progname(argv[0]);
+    qemu_init_exec_dir(argv[0]);
 
     g_mem_set_vtable(&mem_trace);
     if (!g_thread_supported()) {
@@ -3865,7 +3862,7 @@ int main(int argc, char **argv, char **envp)
     /* If no data_dir is specified then try to find it relative to the
        executable path.  */
     if (data_dir_idx < ARRAY_SIZE(data_dir)) {
-        data_dir[data_dir_idx] = os_find_datadir(argv[0]);
+        data_dir[data_dir_idx] = os_find_datadir();
         if (data_dir[data_dir_idx] != NULL) {
             data_dir_idx++;
         }
This page took 0.024652 seconds and 4 git commands to generate.